WordPress.org

Ready to get started?Download WordPress

Forums

Moving to new domain (10 posts)

  1. cohahaco
    Member
    Posted 3 years ago #

    Hi

    Just a quick question. I want to move my wordpress to a new domain, so can I just edit the url in the settings?

    Or will I have to change the url in the database as it says here:

    http://codex.wordpress.org/Changing_The_Site_URL#Domain_Name_Change

  2. Samuel B
    moderator
    Posted 3 years ago #

  3. cohahaco
    Member
    Posted 3 years ago #

    No actually I'm not moving servers. I just want to change the domain.

    So is simply changing it in the Administration > Settings > General okay?

    Or will I have to go in the database like the link I posted above?

  4. Samuel B
    moderator
    Posted 3 years ago #

    oh ok
    yea you need to follow that guide or you will disassociate your posts and other info

  5. cohahaco
    Member
    Posted 3 years ago #

    Okay quick question. On step 1, it says
    1. Follow the guide above to alter the information in the database.

    Is it referring to this:
    http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database

    Second question:
    If I want to import only the user and post content database from my old blog to the blog on the new domain, can I do that?
    I don't care about the other settings and plugins as I can redo them easily.

  6. Samuel B
    moderator
    Posted 3 years ago #

    1. yes - changing url in db

    2. no - not without setting up a 2nd install

  7. cohahaco
    Member
    Posted 3 years ago #

    Okay please correct me if I'm wrong with the steps needed:

    1. Backup > Change the url via database > export user/post content databases
    2. Fresh install on new url domain
    3. Import the databases onto new domain blog

    For step 1, what database do I backup for the users and post content? I want to keep the tags and categories as well.

    Is it just:
    wp_user
    wp_post
    wp_comments

    Thanks

  8. Here's what you have to do (assuming you haven't done anything yet):

    1. Go to Settings/General in your admin panel and change the two URLs to the new domain.

    2. Backup the database.

    3. Backup the files.

    4. At the new host, import the database backup.

    5. Upload the files from the backup.

    There's no safe way to only backup and import specific tables as they are all related. The best thing to do is to backup and import everything then delete what you don't want from the admin panel.

  9. cohahaco
    Member
    Posted 3 years ago #

    @James: Again I'm not moving to a new host/server. I just want to change the blog to a new domain.

    Samuel said I needed to follow this guide:
    http://codex.wordpress.org/Changing_The_Site_URL#Domain_Name_Change

    Or my posts will be disassociated.

    I'm just curious, is going to Settings/General and changing both URL there okay. Or is it necessary to follow the guide instead?

  10. Saildude
    Member
    Posted 3 years ago #

    FOLLOW THE GUIDE - If you just change settings in the Dashboard you will be real sorry and crash your site.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.