There was a problem loading the comments.

How to configure WordPress to use temporary URL in cPanel?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
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

  1. Download "wp-config.php" file in your local system through FTP account.
  2. 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.
  3. After specifying these two lines save the changes and upload "wp-config.php" file back on the server using FTP account.
  4. 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.

Share via
Did you find this article useful?  

Related Articles

© Softsys Hosting