You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Graham Leggett <mi...@sharp.fm> on 2002/04/19 11:44:36 UTC

RedirectMatch not working in v1.3...?

Hi all,

Just been trying to convince RedirectMatch to match all URLs that are
"/", and redirect them to the URL "/index.html". The site behind it is
reverse proxied, so trying to use Apache's normal index.html handling
will not help me.

I've tried the following:

RedirectMatch (.*)/$ http://209.61.173.189$1/index.html
RedirectMatch ^/$ http://209.61.173.189/index.html
RedirectMatch ^$ http://209.61.173.189/index.html

And none of them make any difference, it is as if the RedirectMatch is
not there at all - How do you match the URI "/"... Is the above config
incorrect, or is RedirectMatch broken?

(LoadModule mod_alias is listed before LoadModule proxy in the config
file, ie alias will be executed first, no? The RedirectMatch is also
listed before ProxyPass)

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."