Hi Cobalt,
Not necessarily, it will work both ways. But installing it before transferring will make things a bit easier for you as the domain name change will be detected.
Mode 1: Install it before
- You install and enable it
- Add these lines to your wp-config.php:
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME']);
- Transfer the site (copy files + DB)
- A popup will show up at the top of the admin screen telling you that the domain as changed. Click on the link.
- Run the plugin
- Remove the lines from wp-config.php (and disable the plugin if you’re not planning on moving the site any time soon)
Mode 2. Install it after
- Transfer the site (copy files + DB)
- Add these lines to your wp-config.php:
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME']);
- Install the plugin
- Go to Tools > Change domain in the admin
- Enter your old domain name, and make sure the new one is correct
- Run the plugin
- Remove the lines from wp-config.php (and disable the plugin if you’re not planning on moving the site any time soon)
Please let me know if there’s anything else I can help you with.
Best,
Tommy Lacroix
NuageLab
Thread Starter
C0BALT
(@c0balt)
This is perfect…
I would suggest adding this to the FAQ in some way, it’s an excellent example of how I can see how the plugin works before downloading/running etc.
Thanks for the suggestion. It would be a good idea indeed!