Forum Moderators: phranque

Message Too Old, No Replies

htaccess working in one directory but not another

         

chuckee

12:58 am on Jan 5, 2007 (gmt 0)

10+ Year Member



Hey everyone,
I have a problem.
My site is structured like this on my server.
The non-secure pages are in this directory:
/var/www/domain.com/
and the secure pages are in this directory:
/var/www/secure.domain.com/

I have put an .htaccess file in each of these directories, however only the one in the secure directory is working. Each of these htaccess files does a few different things, including redirecting and has an ErrorDocument directive.

I have tried for many hours trying to figure out why one of them is not working so would appreciate any help!

Thanks

chuckee

1:39 am on Jan 5, 2007 (gmt 0)

10+ Year Member



Update - OK I've managed to get it working. Actually the setting in my httpd.conf file should have been:
AllowOverride All

I have no idea why one of my htaccess files was working when this setting wasn't enabled, but at least it's working now!