How to move content to new domain name? Wordpress

by boxoun
4 replies
Long story short, I somehow let my domain name drop and the brokers picked it up and demanding high dollar. I want to skip past details of why it's not worth it to buy it back so let's just assume I'm making correct decision by wanting to move to new domain name.

What would be the steps needed to do this?
What files do I need to change?

I'm familiar with FileZilla so is it as easy as setting up new domain wordpress install and swapping content files?

Please help.
#content #domain #move #wordpress
  • Profile picture of the author ussher
    Installing wordpress is going to be easy enough but its the content your going to need.

    Do you have a backup of your database?

    If you do, then the instructions for moving are here:
    Moving WordPress « WordPress Codex
    Signature

    "Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."

    - jamroom.net
    Download Jamroom free: Download
    {{ DiscussionBoard.errors[8908679].message }}
  • Profile picture of the author sf_Imtiaz
    Originally Posted by boxoun View Post

    I'm familiar with FileZilla so is it as easy as setting up new domain wordpress install and swapping content files?
    Almost as easy, here's how I've done it in the past. For the sake of illustration we'll call your old and new domains, old-website.com and new-website.com respectively.
    1. Backup the "wp-content" directory from old-website.com and backup the .htaccess file as well.
    2. Create a backup of wordpress database from old-website.com by exporting the database from phpMyAdmin. (Here's how)
    3. Install wordpress at new-website.com (note the database name of the new wordpress installation)
    4. Delete the "wp-content" directory at new-website.com and copy the "wp-content" directory backup from old-website.com.
    5. Copy the .htaccess file in the main folder where you've installed the wordpress at new-website.com.
    6. Drop all tables from wordpress database at new-website.com. (note: don't drop the database, just the tables within the database.)
    7. Import the wordpress database backup you created in step 2, to the database of new-website.com.
    8. Click the "new database" name in phpMyAdmin, go to SQL tab and run these two queries, replace old-website/new-website in the query with actual domain names.
      Code:
      UPDATE wp_options SET option_value = REPLACE(option_value, "www.old-website.com", "www.new-website.com");
      UPDATE wp_options SET option_value = REPLACE(option_value, "old-website.com", "new-website.com")
    9. You should now be able to access the WP dashboard using the login credentials of the old-website.com
    10. Install this plugin, and do a search and replace for your old-website with new-website name. This will replace all instances of old-website.com with new-website.com in the entire wordpress database.

    In case the database is too big and the import fails in step 7, use "big dump" to import the database. If you click the "Usage" link on the website they have instructions on how to use Big Dump.
    {{ DiscussionBoard.errors[8908959].message }}
  • Profile picture of the author RobinInTexas
    If you still have the old site installation at your webhost, it's just a matter of pointing your new domain to the files used for the old domain, and changing the 2 places in the wp_options table that refer to the home url to match the new domain. Then you need to install the BlueVelvet plugin and fix any internal links.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8910699].message }}
  • Profile picture of the author boxoun
    Thanks guys. I'm not a total noob so I think I can handle these instructions. So frustrating. My fault tho.
    {{ DiscussionBoard.errors[8911567].message }}

Trending Topics