In the previous tutorial, we showed you how to install WordPress on an Addon domain. As we continue our Getting started in Wordpress series, this tutorial will guide you through installing Wordpress on your Temp URL. WordPress is "domain specific" software. This means that WordPress will not work correctly unless you access it over the domain name you installed it for. For example, if you're moving WordPress from another host to Web Hosting Hub, you'll want to first transfer and test your WordPress site on our servers. We recommend that you test your website using your temporary URL.
Before continuing, you'll need to know what your temporary URL is. Please reference our How do I find my account's technical information in AMP? article for more help with finding your Temporary URL, which should look similar to http://ehub22.webhostinghub.com/~userna5
- In order to test your WordPress site on your Temporary URL, you'll first need to install WordPress using Softaculous.
- We now need to open your WordPress configuration file, wp-config.php, so we can edit it. This file is located in the root of the WordPress installation. We'll use cPanel's File Manager to edit this file. If you're not familiar with using your File Manager, please read our article on managing files through your File Manager.
Once you have logged into your File Manager and are in the folder where WordPress is installed, you will see a list of files and folders similar to this:
On this page, as shown, you will want to edit the wp-config.php file. Right click on the file and select "Code Edit".
- Now that we are in the "Code Edit" view, we can make the necessary changes to the wp-config.php file. Locate the line in this file similar to:
Let's add two new lines just below that line and enter in the following information (replacing http://ehub##.webhostinghub.com/~username with your actual temporary URL):
Your updated wp-config.php file should look similar to this:
Once you have added the code with your temporary URL (as seen above in the example), save your changes. Now your WordPress site will show correctly on your temporary URL.
You are all done!
Changing your WordPress Installation back to your Domain
When you are done testing your site using the temporary url, you'll want to edit your wp-config.php file again and remove the changes that you made. Once you have pointed your domain to our Nameservers and have allowed 4-24 hours for DNS to propagate, simply edit the wp-config.php file and remove the code we added above.
The next set of tutorials in our Wordpress Education channel will cover basic WordPress features.