.htaccess in deeper directory not working

futurevision

Verified User
Joined
Nov 26, 2008
Messages
51
Hi,

I've moved a client to another newer server and I've found out his new site under domain.nl/staging/* isn't working correctly while this was fine on the old server.

Situations:
- domain.nl is working fine, including mod_rewrite
- domain.nl/staging is showing the actual new website
- domain.nl/staging/page is showing domain.nl whilst /staging/page is in the url

Old:
CentOS 5.5
Apache 2.2

New:
Debian 6
Apache 2.4

Both / and /staging have their own .htaccess. It seems it's only using the /.htaccess and not the /staging/.htaccess. How can I enable that higher .htaccess files should be used over lower ones like on my old server?

uodate:

the .htaccess files in deeper dirs are actually working but this one isnt for some reason. How can I view the log errors in mod_rewrite?
 
Last edited:
I'm not sure but perhaps you can look at the domain level error log; something like:

/var/log/httpd/domains/example.com.error.log

or similar.

Jeff
 
I found out the problem was with the "RewriteBase" in the lower .htaccess at "/". It is weird that on Apache 2.2 this was not a problem. I'll inspect the log file anyway to find out why this is. Thanks :)
 
Back
Top