httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <>
Subject Re: [users@httpd] .htaccess file not read
Date Fri, 18 Jan 2008 18:12:04 GMT
On Jan 18, 2008 5:25 PM, Joe <> wrote:
> Running Apache 2.2 on Debian sid. In my httpd.conf I have the following:
> AccessFileName .htaccess
> AllowOverride  All
> In my web root I have a .htaccess file with a simple rewrite rule but
> nothing gets rewritten
> If I cut & paste the rewrite rule into a <Directory> section in
> httpd.conf then the rewrite works.
> What else could be stopping the .htaccess being read?

Maybe the .htaccess file is being read, but the rewrite rule does not
match. You can't automatically assume that a rewrite rule that works
in a config file works in a .htaccess file without any changes.
The way to find out is to switch on rewrite logging with a high enough
debug level. If you do this, you will get a lot of information on what
matches are attempted, and what the results are.



Bremgarten b. Bern, Switzerland
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message