If this is a single WordPress install, there are a couple database entries with your old domain. Specifically, siteurl
and home
within wp_options
.
That said, if the dev URL is temporary, you can also set the following two constants in wp-config.php
:
1 2 | define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']); define('WP_SITEURL', WP_HOME . '/'); |
Provided that WordPress is installed in the root of your website.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.