Am Di, den 30.11.2004 schrieb Michael Weiner um 18:08:
Sorry to be slightly off topic, however, i am trying to come up with
a
good/efficient redirect in apache to basically take ALL requests to the
webserver and redirect them all to /index.html - except of
course /index.html requests themselves. I have been able to get
RewriteRule ^.+$
http://www.domain.name/index.html [R]
to work however that also matches /index.html. And yes, i have read and
am presently reading the apache org rewrite guide :)
Michael Weiner
Something like that?
RewriteEngine on
RewriteCond %{REQUEST_URI} !index\.html$ [NC]
RewriteCond %{REQUEST_URI} !^$
RewriteRule ^(.*)$
http://www.domain.name/index.html
[R=301]
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 19:44:54 up 10 days, 14:32, load average: 0.30, 0.32, 0.38