Re: OT apache question

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

 



Am Di, den 30.11.2004 schrieb Alexander Dalloz um 19:45:

> Something like that?
> 
> RewriteEngine   on
> RewriteCond     %{REQUEST_URI}  !index\.html$ [NC]
> RewriteCond     %{REQUEST_URI}  !^$
> RewriteRule     ^(.*)$          http://www.domain.name/index.html    
> [R=301]

RewriteEngine  on
RewriteLog     /var/log/httpd/rewrite.log
RewriteLogLevel        0
RewriteCond    %{REQUEST_URI}  !^/index\.html$                 [NC]
RewriteRule    ^(.*)$          http://www.domain.name/index.html 
[R=301]

That should be better. Works too with a redirect to the main index.html
page if the you call http://www.domain.name/subfolder/index.html.

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp 
Serendipity 21:05:25 up 10 days, 15:52, load average: 0.12, 0.45, 0.49 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux