Re: .htaccess file not read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 18, 2008 5:25 PM, Joe <joem@xxxxxxxxxxxxxx> 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@xxxxxxxxx
krist@xxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux