LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Changing a Websites Domain Name (https://www.linuxquestions.org/questions/linux-server-73/changing-a-websites-domain-name-618001/)

chocolate85 02-01-2008 02:25 PM

Changing a Websites Domain Name
 
Hello Everyone

I have a question regarding changing the websites domain name . I have a website with domain name abc.edu and I want to change it to xyz.edu.The website is my departments website and since the name of the department changed I have to change the domain name too.Do i have to use 301 redirect or is there any other way.The website Resides on a Redhat Server.

Thanks and Regards .

ironmike 02-01-2008 03:24 PM

Who provides DNS for your domain? The DNS entries for your domain need to be changed. DNS is the Domain Name Service.

If your domain name now is 'abc.edu', then type this in a terminal window and see what you get back:

dig abc.edu

the output tells you the names of the nameserver(s) for your domain. Who is responsible for them? You or your ISP?

frndrfoe 02-01-2008 03:37 PM

point both names to the same machine using cnames in dns and use name virtual hosts in apache.

Change the ServerName directive from abc.edu to xyz.edu and add a redirect like this:
<VirtualHost *:80>
ServerName abc.edu
Redirect / "http://xyz.edu/"
</VirtualHost>

When someone goes to abc.edu it will change their address to xyz.edu and after a while you can drop the old name.


All times are GMT -5. The time now is 05:26 AM.