Date: Sun, 24 Oct 1999 18:56:18 -0500 From: Carol Deihl <carol@tinker.com> To: James <jrsysadmin@empireone.net> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: re-direct domain Message-ID: <38139CA2.DDEC6831@tinker.com> References: <Pine.BSF.4.10.9910230122220.38418-100000@kg.ops.uunet.co.za> <19991023181559.A4134@intrepid.net> <01aa01bf1e64$7225b560$e9c276d1@empireone.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello James, If you are trying to redirect (for example) from www.one.com to www.two.com/one (where you are hosting both domains), and you are running Apache, you can compile mod-rewrite into Apache, then include a rewrite rule in your httpd.conf file like this: <VirtualHost host.ip.addr.here> ServerName www.one.com RewriteEngine on RewriteRule ^(.*)$ http://www.two.com/one$1 [nocase,last,redirect] ...other config statements if necessary.... </VirtualHost> See the Apache docs for mod-rewrite. Hope this helps, Carol James wrote: > > How would you go about re directing a domain if you have to re-direct it to > something like the following: > http://www.domainname.com/domainname > i was thinking about CNAME but i get an error everytime i play with it... -- Carol Deihl - principal, Shrier and Deihl - mailto:carol@tinker.com Remote Unix Network Admin, Security, Internet Software Development Tinker Internet Services - Superior FreeBSD-based Web Hosting http://www.tinker.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38139CA2.DDEC6831>