Configure WordPress to use temporary URL
- To use your temporary URL with WordPress, simply install WordPress on the domain itself. Do not be concerned with the temporary URL yet.
- Next you will need to locate the wp-config.php file in file manager in cPanel. The wp-config.php file will be located in the root folder where you initially installed WordPress.
- Next, you will need to right-click on the file and select "code edit".
- This will open the actual code of the file, and you will need to insert two lines of code to the top of the file to set your temporary URL as the way to access your WordPress installation.
In your file, http://yourdomain.com/~cPanelusername will need to be replaced with your own temporary url.
It should look like http://18.104.22.168/~cpanelusername Make sure there is no trailing slash at the end, and that it does not contain www.
Save the changes by clicking the "save change" button in the upper right corner.
Congratulation! You have successfully changed WordPress to use your Temporary URL.
Changing WordPress back to use your domain nameWhen you are done setting up and testing the your website using the temporary URL you will want to edit the wp-config.php file again and remove the code you placed into the file. Open the wp-config.php file with the code editor and replace your temporary url with your actual domain name.