Re: [users@httpd] [mod_rewrite] Content-type doesn't change, logs say otherwise

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

 



On Sun, 2006-04-30 at 14:50 -0400, Joshua Slive wrote:
> On 4/29/06, Michał Pałka <michal.palka@xxxxxxxxx> wrote:
> 
> > RewriteEngine on
> > RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
> > RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0
> > RewriteRule \.html$|/$ - "[T=application/xhtml+xml;charset=utf-8]"
> 
> > I guess that I'm missing here some strange interaction between
> > mod_rewrite and DirectoryIndex.
> 
> Probably.  I bet you can get around the problem by letting mod_rewrite
> do the processing normally done by mod_dir.  For example:
> RewriteRule (.*)/$ $1/index.html "[T=application/xhtml+xml;charset=utf-8]"
> 
> Joshua.

Thanks Joshua,

This works indeed. One other thing that I had to add was RewriteBase
since apache was looking for the files in DocumentRoot otherwise.

Michal


---------------------------------------------------------------------
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