.htaccess RewriteRule
Posted by: xtion111177
Posted on: 2009-03-12 10:36:00
We just moved a site over from one Dreamhost account to another. The files should be exactly the same but the RewriteRule in the main.htaccess file is not doing its job on the new account. The site was built to redirect search engine friendly path names to a php page.
Here is the htaccess file just in case you need to see what we are trying to do.
AddType application/x-httpd-php .php .html
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.+) - [PT,L]
RewriteRule ^builders/(.+)$ secondary_flash.html [QSA,L]
RewriteRule ^pillar/(.+)$ secondary_flash.html [QSA,L]
RewriteRule ^articles/(.+)$ article.html [QSA,L]
RewriteRule ^articles/ news.html [QSA,L]
RewriteRule ^admin/(.+)$ admin/secondary.php [QSA,L]
RewriteRule ^(.+)$ secondary.php [QSA,L]
Any help would be greatly appreciated.
Thanks!