Forum Moderators: phranque
I'm using this code in the .htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule (.*) [mysite.com...] [R=301,L]
It works great on everything on the site. The problem is that it doesn't work on the root file in a particular folder. Here is an example on what it works with:
WORKS ON
[mysite.com...]
[mysite.com...]
DOESN'T WORK ON
[mysite.com...]
Does anyone have a quick fix for this? I'm a tad confused at why this isn't working.
FWIW, one potential cause is that mod_autoindex [httpd.apache.org] a) is active and b) appears after mod_rewrite in the httpd.conf file.