From owner-freebsd-isp Sun Oct 24 16:57:30 1999 Delivered-To: freebsd-isp@freebsd.org Received: from tinker.com (troll.tinker.com [204.214.7.146]) by hub.freebsd.org (Postfix) with ESMTP id 684B015145 for ; Sun, 24 Oct 1999 16:57:21 -0700 (PDT) (envelope-from carol@tinker.com) Received: by localhost (8.8.5/8.8.5) Received: by mail.tinker.com via smap (V2.0) id xma018378; Sun Oct 24 18:33:37 1999 Received: by localhost (8.8.8/8.8.8) id SAA18778; Sun, 24 Oct 1999 18:57:22 -0500 (CDT) Message-ID: <38139CA2.DDEC6831@tinker.com> Date: Sun, 24 Oct 1999 18:56:18 -0500 From: Carol Deihl Organization: Shrier and Deihl X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: James Cc: freebsd-isp@FreeBSD.ORG Subject: Re: re-direct domain References: <19991023181559.A4134@intrepid.net> <01aa01bf1e64$7225b560$e9c276d1@empireone.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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: ServerName www.one.com RewriteEngine on RewriteRule ^(.*)$ http://www.two.com/one$1 [nocase,last,redirect] ...other config statements if necessary.... 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