• Hi,
    I started installing WP before I won a auction for domain name I wanted. Now that I’ve obtained the new domain, I would like to change the domain of the WP installation, but use the same installation and database.

    I searched for information on how to do this, but for some reason using the config.php migration and functions.php edit didn’t yield any success. Oddly I’m now inbetween the two URL’s – the Woocommerce installation is on the new domain and the index page is on the old domain.

    Is there an easy fix for this or should I just backup my files and re-install?

Viewing 1 replies (of 1 total)
  • This is generally pretty easy to fix. Before doing anything be sure to back up your files and database just in case. To change the domain do the following:

    1. Search your code to make sure you don’t have your old domain in the code anywhere. This isn’t super common but can happen especially if you have customized your theme.

    2. Use the database search and replace script for WordPress to replace your new domain with the old one in your database.

    For more info check out https://codex.www.ads-software.com/Moving_WordPress and look at the Changing Your Domain Name and URLs section.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing URL on same WP installation and same database’ is closed to new replies.