Many times for one reason or another we need to use temporary URLs, either because we need to test a website before migrating or deleting DNS's, or because we do not have an active domain. In many of those cases it may be necessary to install WordPress and we are going to teach you how to do it in this tutorial.
Before starting it is important that you take into account a couple of things:
- WordPress is not designed to be configured in temporary URLs and because it uses databases it is possible that sometimes there are unexpected errors that can not be solved unless a real URL is used.
- You need to have a temporary URL enabled. If you do not have it, you will need to ask Neolo's technical support to enable it.
With that out of the way we'll explain how to install WordPress in your temporary URL:
- Log into your cPanel account and look for the WordPress option that is inside the Software tab
- Press the Install Now button
- Confirm all information related to the installation. You must install WordPress in the domain associated with your hosting. Once confirmed, press the Install button
- Once the installation has finished, go back to the cPanel and press the option File Manager. Go to the directory containing the installation, this folder is usually the public_html
- Find the file wp-config.php, place the cursor over it and press the right click, once you've done this press the Edit option
- After the first line write the following command and press Save:
define ('WP_HOME', 'YOUR-TEMPORARY-URL');
define ('WP_SITEURL', 'http: // YOUR-TEMPORARY-URL');
- Test that it is working by entering http://YOUR-TEMPORARY-URL and http://YOUR-TEMPORARY-URL/wp-admin
- In case everything is working... Congratulations! If not, contact our technical support team and we will be able to help you setting it up.
Important Note: Remember that whenever you want to use your real URL all you have to do is delete those two lines that you added in the wp-config.php file.