Fixed bug in .htaccess redirects and added test resource files.