Moving Wordpress Site To Completely New Domain

19 replies
  • WEB DESIGN
  • |
I need to be able to move wordpress sites to new domains. This is not really for SEO purposes just for something else that I'm doing.

I'm familiar with moving my wordpress files to a new host, and importing the database. I do this all the time manually with no problems.

But I've been searching and posting everywhere in forums and can't find the answer to this simple question.

Is there a way to move your wordpress site onto a new domain and have it appear exactly as the old site, but with all of the images hosted on the new domain, and links to inner pages on the new domain? (Also: have your domain.com/wp-admin link take you to login to the new site, not the old one)

In the past I have moved some sites to new domains but I always have problems that I can't completely fix- the image URLs are still hosted on the old domain, all of the inner page links are pointing to the old domain, the wp-admin login points to the old domain, etc.

I've seen people say "just buy BackupBuddy" and I am definitely willing to buy something to help me do this quickly on a lot of sites, but i just don't see what backup buddy actually does for this particular purpose- it basically just downloads your database and wordpress files, as you can do manually. One thing I have tried is going through the database file and replacing the old domain name with the new one and then uploading the database file to the new site- but that doesn't really work for some reason and still doesn't do what I want. I think getting the images to be hosted on the new site may be the hardest part of this.

I'm sure somebody knows the answer to this.
#completely #domain #moving #site #wordpress
  • Profile picture of the author Ron Killian
    One thing you can do is define your site url's in the wp-config.php file by adding the following to it:

    Code:
    define('WP_SITEURL', 'http://www.yoursite.com'); 
    define('WP_HOME', 'http://www.yoursite.com');
    It won't take care of all the image paths, but it take care of alot.

    Another thing you can do is, once the site is on the new domain, use a "Search and Replace" plugin, which you can replace the old sites url's with the new one's. Works very well.

    I do the above all the time, works perfectly.

    Just my two cents.
    Signature
    PLR Affiliate Program Has Launched! Easily Promote Over 5,000 PLR and MRR Products.

    Largest Selection of PLR Articles on the Planet! PLR Ebooks, PLR Video, PLR Websites and more with Private Label Rights
    {{ DiscussionBoard.errors[8986159].message }}
  • Profile picture of the author joe ferdinando
    I found that Backup creator is one of the best for this. I started with the $7 single license and updated to the developer license!

    Its simple to use and has features like backup to local computer, email, amazon s3 and cloud.

    I have and use wp Twin, Backup Buddy, Backup breeze, and a few more. But I have to tell you that Backup creator became my favorite tool!

    Duplicator is FREE and does a decent job. You can test it. But again Backup creator is my favorite cloning tool!

    Originally Posted by Campbell24 View Post

    I need to be able to move wordpress sites to new domains. This is not really for SEO purposes just for something else that I'm doing.

    I'm familiar with moving my wordpress files to a new host, and importing the database. I do this all the time manually with no problems.

    But I've been searching and posting everywhere in forums and can't find the answer to this simple question.

    Is there a way to move your wordpress site onto a new domain and have it appear exactly as the old site, but with all of the images hosted on the new domain, and links to inner pages on the new domain? (Also: have your domain.com/wp-admin link take you to login to the new site, not the old one)

    In the past I have moved some sites to new domains but I always have problems that I can't completely fix- the image URLs are still hosted on the old domain, all of the inner page links are pointing to the old domain, the wp-admin login points to the old domain, etc.

    I've seen people say "just buy BackupBuddy" and I am definitely willing to buy something to help me do this quickly on a lot of sites, but i just don't see what backup buddy actually does for this particular purpose- it basically just downloads your database and wordpress files, as you can do manually. One thing I have tried is going through the database file and replacing the old domain name with the new one and then uploading the database file to the new site- but that doesn't really work for some reason and still doesn't do what I want. I think getting the images to be hosted on the new site may be the hardest part of this.

    I'm sure somebody knows the answer to this.
    Signature
    {{ DiscussionBoard.errors[8986168].message }}
  • Profile picture of the author gerardojv
    All of the suggestions above are great and correct, however because Wordpress posts the full URL of the site within posts, pages, and through out the site like:

    HTML Code:
    http://www.mydomain.com/wp-content/uploads/12/10/someimage.jpg
    and not something dynamic like:

    HTML Code:
    /wp-content/uploads/12/10/someimage.jpg
    it really doesnt matter what method you use, your images will always end up being broken.

    I forget the name of the plugin but theres one out there called "base url", it allows you to use something like:

    HTML Code:
    [base_url]/wp-content/uploads/12/04/image.jpg
    And basically will dynamically put whatever you have under your URL in your settings into that [base_url]. This way whenever you move it, everything is automatically updated. You can even use it within other areas of the site as well.

    G
    {{ DiscussionBoard.errors[8986300].message }}
  • Profile picture of the author topnichewebsites
    You can get backup buddy and have no problems as I been using it for a long time. If you need any help give me a scream

    Note: a lot of cloners have issues with GD and BlueHost - there away around that though

    Mike
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[8986802].message }}
  • Profile picture of the author Istvan Horvath
    Is there a way to move your wordpress site onto a new domain and have it appear exactly as the old site, but with all of the images hosted on the new domain, and links to inner pages on the new domain? (Also: have your domain.com/wp-admin link take you to login to the new site, not the old one)
    There is a free plugin on the wp.org site - Search and Replace. Download, install use it...

    It helps exactly with the issue you described: it goes into the database and finds and replaces all the instances of
    old-example.com/wp-content/uploads/2011/03/mypic.jpg
    with
    new-example.com/wp-content/uploads/2011/03/mypic.jpg

    The way you do it (although it is clearly described in the instructions): you tell the plugin to search, for example for
    Code:
    http://example.com/
    and to replace it with
    Code:
    http://thenewdomain.com/
    It will change all or some of the instances (depending on your settings) and will leave the rest of the URLs unchanged.

    I used it a lot, when moving sites; e.g. from my dev server to client site etc.
    Signature

    {{ DiscussionBoard.errors[8986809].message }}
    • Profile picture of the author sandragaff
      I always use Duplicator it is a free plugin and very easy to use.

      You always end up with an exact replica of your site.

      No broken images, you don't have to go an modify any other settings

      Hope it helps
      {{ DiscussionBoard.errors[8988426].message }}
      • Profile picture of the author mindworp
        We also use the free Duplicator Plugin, just install, replicate, download Zip & Installer file, upload to new server, run the install script and everything is done for you.

        Exact replication with all data, plugins, images etc, we use this for moving from off-line development server to remote hosts & more......

        Hope that this helps someone out......
        {{ DiscussionBoard.errors[8988989].message }}
  • Profile picture of the author Anton Yulianto
    you can use Duplicator it is a free plugin..
    {{ DiscussionBoard.errors[8999007].message }}
  • Profile picture of the author mutant9
    I think duplicator should work, you can also try backing up your website using WP2D (WordPress to Dropbox) plugin and then use the backup on your new domain.
    {{ DiscussionBoard.errors[9006139].message }}
  • Profile picture of the author watsonovedades
    remember to backup all the wordpress you create from now on
    Signature
    Whatever your mind can conceive and BELIEVE you can achieve
    Follow me on Twitter - @DineroConPc
    I talk about Affiliate Marketing Methods
    {{ DiscussionBoard.errors[9006748].message }}
  • Profile picture of the author SJL
    There's a simple solution... Notepad
    (yes I'm serious)
    1. Get the database.sql export file
    2. Open it in Notepad
    3. Open "Edit > Replace"
    4. "Find what" is your old site. For example "oldsite.com"
      -Note: Don't include http:// or www.
    5. "Replace with" is your new site. For example "newsite.net"
    6. Click "Replace All"
    7. Save the file
    8. Import it to your new database
    And you are done
    {{ DiscussionBoard.errors[9010932].message }}
    • Profile picture of the author christogonus
      Originally Posted by SJL View Post

      There's a simple solution... Notepad
      (yes I'm serious)
      1. Get the database.sql export file
      2. Open it in Notepad
      3. Open "Edit > Replace"
      4. "Find what" is your old site. For example "oldsite.com"
        -Note: Don't include http:// or www.
      5. "Replace with" is your new site. For example "newsite.net"
      6. Click "Replace All"
      7. Save the file
      8. Import it to your new database
      And you are done

      I have always made use of this method and I have never been disappointed. My own procedure goes thus:

      I do not see any need for backup on the old site because I do not tamper with anything. To avoid "stories that touch the hearth", I make use of the "File Manager Legacy" instead of the "file manager".

      1. On the new domain, install wordpress
      2. on the old domain, zip the "wp-content" folder and download it to your computer
      3. on the old website, extract database through "PHP MyAdmin"
      4. Use "Notepad + +" to open the extracted database, then use the "find and replace" to locate the old url and replace it with the new url
      5. rename the wp-content on the new host and upload the downloaded zip wp-content and extract
      6. on the new hosting, drop the database and upload the edited sql file.

      NOTE:
      You can also search for "home/OldCpanelUsername" in the sql file. If you find any result, replace OldCpanelUsername with the NewCpanelUsername.
      Signature
      I am a developer and can support on WHMCS, Cpanel, VPS, SSL and more. Add Me On Skype: christogonus2

      >> I offer WHMCS Setup, Updates & Technical Support <<
      {{ DiscussionBoard.errors[9012964].message }}
  • Profile picture of the author sbucciarel
    Banned
    I use Duplicator. It's free and makes the adjustments in urls automatically
    {{ DiscussionBoard.errors[9011894].message }}
  • Profile picture of the author spearce000
    Another vote for Duplicator. I used it for the first time yesterday and it saved me a LOT of time and hassle.
    Signature
    WordPress Security Clampdown – was just for the War Room, now available to all Warriors. Protect your WordPress site from hackers. No opt-in required.
    {{ DiscussionBoard.errors[9012006].message }}
  • Profile picture of the author copilu0
    I've used in the past Backup Creator and it works. With just a few clicks you'll have the new site created.
    {{ DiscussionBoard.errors[9012337].message }}
  • Profile picture of the author psahalot
    I have used blogvault.net and InfiniteWP
    both of these tools work great.
    Other than that you can also go for ManageWP as it comes with a site clone tool that helps you move site from one host/domain to a different one.
    {{ DiscussionBoard.errors[9012462].message }}
  • Profile picture of the author sbucciarel
    Banned
    Just get the free Search and Replace wordpress plugin and it will replace the old urls with the new urls.
    {{ DiscussionBoard.errors[9013691].message }}
  • Profile picture of the author davidaclark
    Originally Posted by Campbell24 View Post

    I need to be able to move wordpress sites to new domains. This is not really for SEO purposes just for something else that I'm doing.

    I'm sure somebody knows the answer to this.
    I find WPTwin is excellent for this. You can back-up a complete WordPress blog in a few minutes and restore it to another website quickly and easily. It is not cheap but is well worth the money as it can be used as a regular blog back-up whenever you wish.
    Signature
    Buy the perfect domain name for your website.
    http://www.domainnamesthatsell.com/


    {{ DiscussionBoard.errors[9013789].message }}

Trending Topics