Mailing List Archive

Redirecting traffic...
Hi...
I need some pointers about redirecting requests for http://foo.com to http://www.foo.com, in such a way that in the URL bar of a browser, it would change from foo.com to www.foo.com.


UseCanonicalName is on
and in my zone file, I have the following:

IN A <ip-addr>
www IN CNAME foo.com.

I need it to just rewrite the URL.

Thanks,

Chris
Re: Redirecting traffic... [ In reply to ]
On Thu, 29 Nov 2001, Chris J. Babyak wrote:

> Hi...
> I need some pointers about redirecting requests for http://foo.com
> <http://foo.com> to http://www.foo.com <http://www.foo.com> , in such a
> way that in the URL bar of a browser, it would change from foo.com to
> www.foo.com <http://www.foo.com> .

This is almost another uber-FAQ:

http://httpd.apache.org/docs/misc/FAQ.html#canonical-hostnames

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org