Please Help. How do i transfer website from one domain to another.

They have: 12 posts

Joined: Nov 2002

A friend has asked me to help load his website onto a new domain
name with webspace. I have all the folders to upload but do I have
to go in and change all the links and everything from http://www.hissite.com to http://www.newsite.com. If I do can anyone
tell me the easiest and quickest way to do this.

many thanks

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Search and replace in your text editor or html editor, but don't replace it with the url, use the relative to root option -- replace http://www.hisssite.com/ with just / and then all the files should work.

Remember to back things up first!

If you're on a PC, ultraedit.com does S&R within folders, otherwise, on a mac, BBEdit does (barebones.com), I think (I haven't had to do this for ages).

They have: 12 posts

Joined: Nov 2002

Apologies - I don't understand this:
but don't replace it with the url, use the relative to root option -- replace http://www.hisssite.com/ with just / and then all the files should work.

I will try the sites you suggested

thanks for your time

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

What don't you understand?

instead of using the full url, use just a forward slash, which tells the browser to find the files relative to the root (domain name), instead of relative to the file (if you left off both the url AND the forward slash).

Are you aware of how to move within directories when including files?

Absolute: http://www.hissite.com/images/something.gif

Relative:
../images/something.gif

Relative to Root:
/images/something.gif

If the file is located at say http://www.hissite.com/folder/anotherone/file.html, and the images are at http://www.hissite.com/images/something.gif, then an image on that page would be:

Absolute:
http://www.hissite.com/images/something.gif

Relative (up two directories, down into the images directory):
../../images/something.gif

Relative to Root:
/images/something.gif

See?

They have: 12 posts

Joined: Nov 2002

Thanks for elaborating Suzanne - I see what you mean now.
Should have it sorted in about a month Smiling

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

It'll go faster, I bet. Wink Good luck!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.