Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I currently have a wordpress.org website on a server with a specific domain name. I would like to move it all to a server with another domain name as I have changed my company name.

What is the best way of doing this without losing the links (Both internal links and external links going towards the site)? Many thanks in advance

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

Here is my solution.

First download this file.

Then follow these steps.

In shortly

  1. Backup/download your database.
  2. Upload it to your new site.
  3. Copy all wordpress folder including wp-admin,wp-content etc from your old site to new one.
  4. Edit the downloaded php file, change the password. you need to change the password in this line. define('DDWPDC_PASSWORD', 'Replace-This-Password');
  5. Now place the downloaded php file in the root directory of your NEW site.
  6. http://www.yourNewDomain.com/wp-change-domain.php
  7. Enter the password you entered in step 4.
  8. Now you can see a form filled with your old db values. Just change the details. Thats it. You are done.

PS: I have included the screenshot of how value appears in the form

enter image description here

share|improve this answer
    
Thank you very much, I tried to import my sql back up and it said: Could not import configuration what did I do wrong? –  Arthur Mamou-Mani Nov 13 '12 at 13:45
    
Nevermind sorry I used the wrong import tool on phpmyadmin. thanks again. –  Arthur Mamou-Mani Nov 13 '12 at 13:52
    
It is not working on my website, do you know how I could check the database or if I did any thing badly? –  Arthur Mamou-Mani Nov 13 '12 at 19:11
    
Hello mate, I hope you have taken backup. That's the first step, remember? If you are using cPanel, you can check your database using phpmyadmin. –  Giri Nov 14 '12 at 0:48
    
Thanks @Giri but what is cPanel, yes i backed up my database –  Arthur Mamou-Mani Nov 14 '12 at 0:49
show 1 more comment

It's a multi-step process, most of which is detailed here: http://codex.wordpress.org/Moving_WordPress

Here are my bullet points, as I've done it a number of times:

1: Backup everything from the original site. Site files, themes, complete DB dump, everything.

2: Install WP on the new server

3: Upload your backups, specifically /wp-content and your DB backup.

4: Complete a search and replace in the DB for your old domain, inserting your new one everywhere needed.

5: Your new site should now be online. Drink a beer.

6: Once the new site looks good, it's time to kill the old one. Take down everything and set up a redirect with htaccess that will bounce any incoming traffic to the new URL (down to the specific post/page).

I know that's short, but that's the bulk of it. Anything specific you needed to know?

share|improve this answer
    
The search/replace should handle serialized data‌​. A redirect plugin may be useful for step 6. –  brasofilo Nov 7 '12 at 21:55
    
Following what @brasofilo said, I use Deploy Helper. –  TheDeadMedic Nov 7 '12 at 22:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.