Sometimes you wish to verify the website before pointing it to a new server. You can achieve this by doing a little change in WordPress configuration file. Here are the steps to do this.
Configure WordPress to use temporary URL
- Download "wp-config.php" file in your local system through FTP account.
- Once it is downloaded, open it in any text editor and add the following line:
define('WP_HOME','your-temporary-url');
define('WP_SITEURL','your-temporary-url');
Here, your-temporary-url is the URL that you have received in the hosting account login information email.
- After specifying these two lines save the changes and upload "wp-config.php" file back on the server using FTP account.
- You can now access your website using the URL mentioned in the file. Make sure you remove these two lines from "wp-config.php" file once you point your website to new hosting.