httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] redirecting with apache 1.3
Date Tue, 12 Oct 2004 23:28:44 GMT
On Tue, 12 Oct 2004 12:05:53 -0700 (MST), Donald Raikes <> wrote:
> <virtualhost *>
> servername address2
> redirect address2
> redirectmatch (.*)\*.html$1.html
> </virtualhost>
> Will that direct
> http://www.address2 to
> and
> http://www.address2/test.html to

No.  Redirect takes only a URL-path (the part after the host/port),
not a full URL.  So you probably want something more like
RedirectMatch ^/$ http://192.168.1.......
RedirectMatch (.*)\.html http://192.168.....

But the fact that you are using non-routable IP addresses is a little
worying.  You do realize that Redirect(Match) will ask the client to
refetch the page at the new address?  If you want the server to fetch
the page and return it to the client, you need to look at ProxyPass or
the  [P] flag to RewriteRule.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message