How to configure WordPress to use temporary URL in cPanel?

WordPress is a CMS application that can be installed and accessed through a domain name. As per the default configurations, you will not be able to access your website using any temporary URL. This creates a complexity for customers who would like to verify the hosting service before pointing their websites to a new server. In order to overcome this issue, you need to make a minor change on your WordPress configuration file which will allow you to access your website through the temporary URL before pointing it to a new server. Following are the steps to do this:

 

Configure WordPress to use temporary URL

  1. First of all, download "wp-config.php" file in your local system through FTP account.
    (You can locate this file under the folder where you have installed WordPress)

  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. You can access this email by referring the steps mentioned here. In case, if you could not find then you can contact our support team for this.

  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.

Important Note: Once you point your domain to a new server, make sure that you remove these two lines from "wp-config.php" file.

 

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Enable Gzip Compression for WordPress via .htaccess file?

When Gzip compression isn't enabled on WordPress website, Google PageSpeed Insight gives you a...

How to change the WordPress dashboard language?

When you install the WordPress default language will be English. You can change it from the admin...

How to Deactivate Wordpress Plugins from phpMyAdmin and using FTP When Not Able to Access WP-Admin?

While doing troubleshooting for any of the websites, you might be suggested to deactivate all the...

How to fix 403 forbidden error in WordPress?

What is 403 FORBIDDEN ERROR IN WORDPRESS?  The 403 Forbidden error code is shown to a web...

How to Use WP_DEBUG?

Introduction PHP is a well known programming language used by Wordpress having its own debugging...