Transfer files from one domain to another


#1

I have had a domain hosted on Dreamhost for about a year and recently purchased a second domain with an easier to remember name. Is there any simple way to transfer the files from the old domain to the new one, other than uploading them all one by one since there are so many?

Also is there a way that people who type in the old domain will somehow automatically be transferred to the new domain?

I’m sorry if this is a silly question, I have very little experience with all of this and am lucky I even managed to figure out how to upload files!


#2

rename “olddomain.com” folder to “newdomain.com” folder. this will play the trick.

Save [color=#CC0000]$97[/color] (max discount) on dreamhost plans by using promo code: [color=#CC0000]97CRAZY[/color]. Sign Up NOW


#3

As Nathan suggested, the easiest method is to simply rename the web-directory, but note that if any files in your current site refer to absolute file paths (ie: /home/username/domain.com/) or reference the old domain (ie: http://www.olddomain.com/somefile.html), you will need to update these files to reflect the new situation.

Once you have the content working on the new domain, you can set the old domain to ‘re-direct’ to the new domain using the admin panel by going to Domains -> Manage Domains and clicking on the ‘spanner’ in the Web Hosting column for the old domain.

Mark


Save [color=#CC0000]$50[/color] on DreamHost plans using [color=#CC0000]PRICESLASH[/color] promo code (Click for DreamHost promo code details)


#4

While you can rename your directory as the others pointed out, keep in mind that doing so will take your old site down immediately.

I’m not too familiar with the shell, but you should be able to use the cp command to copy the files once logged in.

If you don’t mind taking your other site down, by all means rename the folder. You may want to set up redirection immediately though. If you have any concern that paths may be an issue, I would copy it instead of renaming it and debug any issues before taking your old site down.


find / offer local services free
http://www.TheHelpfulNeighbor.com


#5

Simplest thing is ssh in:

cd olddomain.com
tar -cvf old.tar *
cd …
cd newdomain.com
mv …/olddomain.com/old.tar .
tar -xvf old.tar

All completed. Just rename the domain directories to fit yours.

Save [color=#CC0000]$97[/color] on Dreamhost plans by using promo code: [color=#CC0000]SRVR97[/color]


#6

I think that when you tranfer your website content to a new domain, it takes too much time for google to index the new website correctly. What is your opinion about that?


#7

Redirect 301.


#8

All,
Please is it possible to tranfer domain and email address to another hosting?


#9

yayane, yes. :slight_smile:

We even have a nice doc on how to do it: http://wiki.dreamhost.com/Transfer_your_hosting_to_us