Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-01-2008, 02:25 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Changing a Websites Domain Name

Hello Everyone

I have a question regarding changing the websites domain name . I have a website with domain name and I want to change it to 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 .
Old 02-01-2008, 03:24 PM   #2
LQ Newbie
Registered: Feb 2004
Location: Virginia, USA
Distribution: RedHat 4.5
Posts: 6

Rep: Reputation: 0
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 '', then type this in a terminal window and see what you get back:


the output tells you the names of the nameserver(s) for your domain. Who is responsible for them? You or your ISP?
Old 02-01-2008, 03:37 PM   #3
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

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

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

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


dns, nameservers

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
serving multiple domain websites on one server? gsgleason Linux - Software 1 06-03-2005 10:50 AM
changing domain name corbis_demon Fedora 2 09-27-2004 02:18 AM
Changing domain name corbis_demon Linux - Newbie 2 09-16-2004 07:48 AM
Changing domain name Mikessu Linux - Networking 2 12-29-2003 09:16 AM
Computer name/Domain name changing tweselak Linux - Newbie 4 07-31-2003 03:29 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration