httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cindy Ballreich <ci...@ballreich.net>
Subject RedirectMatch question
Date Thu, 11 Jul 2002 21:54:22 GMT

I'm using Apache 1.3.26 (from source) on RedHat 7.3.

I have a VirtualHost setup for one of our domains. I would like to redirect *all* requests
made to this domain to a particular page on another domain. I'd like to completely throw out
the original url and just use the new one.
It looks something like this in httpd.conf...

<VirtualHost *>
    ServerName www.domainone.com
    RedirectMatch permanent .* http://www.domaintwo.com/directory/page.html
</VirtualHost>

Obviously, I'm misunderstanding something because when I enter something like http://www.domainone.com/foo/bar.html
I get http://www.domaintwo.com/directory/page.htmlfoo/bar.html which of course doesn't exist
and gives a 404 error.

According to http://httpd.apache.org/docs/urlmapping.html#redirect this should be correct.

I'd really appreciate it if someone could point out what I'm doing wrong here.

Thanks

Cindy


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message