httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
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 <joem@joeshome.me.uk> 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.

See:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog

Krist

-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message