How to Configure WordPress to Use a Temporary URL
If migrating or transferring your WordPress web site from one host to a different, you should guarantee everything is so as before you modify your domain’s nameservers. as an example, if leaving your current host and your web site has been migrated to Ownwebservers, you’ll view your web site using a temporary URL in order to double-check that everything is absolutely a similar — then make the changes to your domain nameservers.
In this article you will understand how to configure and access WordPress using a temporary URL.
Where to Find a Temporary URL?
In your hosting account information email (the one you got after you signed up for your hosting account), you’ll be able to simply find the temporary URL that you can use to access your web site.
http://IPADDRESS/~yourusername
So, If your web hosting provider give you IP as 1.234.56.789 and username as “myname”, then your tempory URL would be something like this: http://1.234.56.789/~myname
How to Configure WordPress to Use Temporary URL?
Since WordPress adds your domain name to its database, it’ll not automatically work with the other URL unless you create manual changes to its configuration.
Once your web site has been with success transferred (or WordPress has been successfully installed with the help of Softaculous), login to your cPanel account and open File Manager.
Therein, within the root folder of WordPress, find the wp-config.php file.
Right click on it and choose Code Edit. Within the wp-config.php file, find the lines that specify WP_HOME and WP_SITEURL — if the lines don’t seem to be there, you may have to be compelled to add new ones. Either amendment the address to your temporary one in existing lines, or add new lines of code to correspond this (wherein the IPADDRESS is that the IP mentioned in your hosting account information email and also the username is your cPanel username):
define('WP_HOME','http://IPADDRESS/~username'); define('WP_SITEURL','http://IPADDRESS/~username');
From the top right corner Save your changes by clicking the button.
That is all, your web site will currently be viewed using the temporary URL . Once you’ve got ensured that your web site is the want you wish it to be, you’ll amendment the wp-config.php file to reflect your actual domain name, and point your domain’s nameservers to Ownwebservers.
If the steps in this article above listed do not resolve your issues, please feel free to contact us or open a support ticket and we’d be happy to take a look.