How to move WordPress from existing domain to new domain on same server

by NarenP
11 replies
I want to move wordpress from oldsite.com to newsite.com on same server (i use Bluehost).I searched on Google but found many different methods, all of them quite complicated actually!

From what I have gathered it is something like:

method 1:
1) Export wordpress of old domain (dashboard > tools > export)
2) Download wp-content folder from c-panel.
3) Install wordpress in new domain.
4) Set up WordPress address, Site url & permalink to be the same as old domain.
5) Import wordpress to new domain. dashboard > tools > import)
6) Overwrite wp-content folder to new domain using filezilla.
7) Update URL using velvet blues plugin
8) 301 redirect

method 2:
1) Export SQL database using phpMyadmin.
2) Download wp-content in c-panel.
3) Install wordpress in new domain.
4) Import SQL database to new domain.
5) Overwrite wp-content to new domain using filezilla.
6) Update URL using velvet blues plugin
7) 301 redirect

i want to do this manually. What would be the best way to address this?
Any assistance is appreciated.
#domain #existing #move #server #wordpress
  • Profile picture of the author Efryll
    if it's on the same CPanel it's pretty easy actually.

    1. Zip all files on the old website
    2. Move it to new website
    3. Extract the zipped files
    4. Go to PHPmyAdmin ---> click and look for your database ----> click wp-options
    5. there should be "site_url" edit that and replace the old domain name with new one
    6. Scroll down to see "home" (it is usually on page 2) do the same thing you did on #5

    Voila!

    Edit - You can't login to your old domain if you do this, you will be redirected to new domain.
    Signature

    Filipino Ninjas For Hire! (VAs, Web Developers, Writers, etc) - contact me efryll.im(at)gmail.com

    {{ DiscussionBoard.errors[8889327].message }}
    • Profile picture of the author NarenP
      Thank u. do i need to edit wp-config file? if yes pls brief me those steps
      {{ DiscussionBoard.errors[8892212].message }}
  • Profile picture of the author andrawisnaser
    if they are on the same hosting its pretty easy just change the site_url and move the files, no need to do all of that

    but if its on different hosting yup you need to do all of that

    thanks anyway
    {{ DiscussionBoard.errors[8889340].message }}
  • Profile picture of the author alistair
    Something like that. I just followed the instructions here - Moving WordPress « WordPress Codex which was a good help for me.
    {{ DiscussionBoard.errors[8889347].message }}
  • Profile picture of the author Zeus66
    Or... You could spend a measly $7 to get Backup Creator (no affiliation, just a happy customer) and do it all with a few mouse clicks.

    How much is your time worth?
    {{ DiscussionBoard.errors[8889407].message }}
    • Profile picture of the author micksss
      Originally Posted by Zeus66 View Post

      Or... You could spend a measly $7 to get Backup Creator (no affiliation, just a happy customer) and do it all with a few mouse clicks.

      How much is your time worth?
      Or save that $7 and install use the free "WordPress Move" plugin.
      Signature
      Web Hosting Reviews ► www.CastironHosting.com ◄ Read or Submit Feedback on Web Hosts.
      Web Hosting Coupons, Deals & Promos!

      Need a Virtual Private Server? www.VPSPlan.com
      {{ DiscussionBoard.errors[8889720].message }}
  • Profile picture of the author Krisz Rokk
    Signature
    {{ DiscussionBoard.errors[8890082].message }}
  • Profile picture of the author yakim1
    I had to move a clients wordpress site from the root of a domain to a folder just off the root of the domain.

    I just copied all the wordpress files from the root to the new folder. I used the same database but had to change the site urls in the database as Efryll said in his post.

    I don't remember if I had to make a site url change in the wp-config file or not.

    It took me quite a while to figure out exactly what I needed to do.

    Best regards,
    Steve Yakim
    {{ DiscussionBoard.errors[8890106].message }}
  • Profile picture of the author wpholic
    Just use Duplicator, quick and easy. Make backup package from the old site, copy the package files to the new domain folder, run the installer, done. No need to mess with wp-config or mysql.
    {{ DiscussionBoard.errors[8892404].message }}
    • Profile picture of the author joe ferdinando
      Naren

      There are many backup and restore plugins on the market!

      Duplicator is FREE and works well!

      Backup Creator is better and more reliable for $7 single use or upgrade to multple or dev version.

      WP Twin and Backup Buddy are the best but costly.

      I found backup Creator to be my #1 choice for backups and cloning!

      None of these plugins need config changes.

      Just install backup and download your backup file. Then do a new wordpress install and install the backup plugin and upload your backup file and restore to the new wordpress site and you have an exact clone which you can edit with new names titles etc!
      Signature
      {{ DiscussionBoard.errors[8893222].message }}
  • Profile picture of the author kingde
    You should use a reliable utility/clone/duplicator... the problem is that you can't just do a search a replace in the database export text file from one domain to the next.. because there are some blob (binary large objects) or something like that which embed the domain..
    There is an opensource tool to do this (and it's the same one included in many of the easy to use tools) but you need some technical knowledge to do it right.
    Signature

    **** Learn fast and simple ways to tackle challenging business topics DaveKing.org/about ****

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

Trending Topics