[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Domain redirection



At 14:15 06/11/00 +0100, you wrote:
>Dear Mr. Babu P. Yogarajah.
>
>I've read your post at Cobalt User List.
>
>I too was looking for the right procedure to redirect a domain name to
>another one. I've done it and everything works. Now my RaQ3i is also the
>primary DNS of the redirected domain. Have I also to setup the DNS in a
>special way? Do I need to create a CNAME?
>Thank you very much
>

Dear Claudio,

In the past, DNS experts of this mailing list said:,
avoid CNAMEs and use A records.
(Reason minimise the unwanted Internet traffic)

Only use CNAMEs if you have no DNS control of any
particular domain.

So, if you have 
domainA.com and domainB.com then create identical set of
domain DNS records.
Then follow redirection method 2)Web server level -  listed below.


There are several ways you can do domain redirection:

1)DNS level - if you use IP based hosting then create
Virtual host using cobalt's GUI with one IP.
Then setup DNS records for domainA.com and domainB.com
with the same IP.

2)Web server level - 
Create Virtual host setup for domainA.com using cobalt's GUI.
Then login as root to your server, then
Add the following line at the end of your 
/etc/httpd/conf/httpd.conf file

Include /etc/httpd/conf/cnames.conf


Then create a file /etc/httpd/conf/cnames.conf
with at least following contents.

<VirtualHost your.ip.number.here>
ServerName domainB.com
RedirectPermanent / http://domainA.com/
</VirtualHost>


Now restart the web server as [for RAQ3 and RAQ3i]
/etc/rc.d/init.d/httpd restart



3a)Web browser level - Refresh method

index.html of domainB.com
------------------------------------
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=http://domainA.com/";>
</head>
</html>
------------------------------------

3b)Web browser level - JavaScript method
index.html of domainB.com
------------------------------------
<html>
<head>
<script language="javascript">
this.location.href='http://domainA.com/'
</script>
</head>
</html>
------------------------------------


 
If you need similar method for domain alias on e-mail
I shall post it later.
 

Best regards,
Babu P. Yogarajah
___________________________________________________
Luxmi.NET -> Low cost DOMAINS & InterNET services
Web: www.luxmi.net  autoResponder : info@xxxxxxxxx
99p Domain Registration Scheme -> http://99p.org/