Click to See Complete Forum and Search --> : .htaccess redirection


PeejAvery
August 18th, 2009, 02:54 PM
What am I doing wrong? I cannot figure out when this is throwing a server error. It should redirect anyone going to to www.example.com/folder to www.example.com/folder.php.

RewriteCond %{REQUEST_URI} ^/folder [NC]
RewriteRule ^(.*)$ http://www.example.com/folder.php [L,R=301]

PeejAvery
August 18th, 2009, 03:18 PM
Update: It might not be that code after all.

It turns out, that I have two identical .htaccess files. Bytes to permissions the files are identical. However, one returns a server error and the other works. Any ideas? I have never seen this before.