You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joe <jo...@joeshome.me.uk> on 2008/01/18 17:25:41 UTC
[users@httpd] .htaccess file not read
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?
--
Regards, Joe
---------------------------------------------------------------------
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
Re: [users@httpd] .htaccess file not read
Posted by Krist van Besien <kr...@gmail.com>.
On Jan 18, 2008 5:25 PM, Joe <jo...@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