WordPress is dynamically driven using your domain name. This means that WordPress will not work correctly using your temporary URL if it was configured to be installed using your domain name. Click here to learn more about WordPress Hosting.

Take for instance, if you are migrating an existing WordPress site from another host to InMotion hosting, you will want to migrate the site and test it prior to pointing the domain name to our servers.

We advise using your temporary URL to test your WordPress site before pointing your domain to our servers. If you install WordPress using Softaculous located in cPanel, you won't directly have the option to install it using a temporary URL, so you can follow the steps below to get this working properly.

If you need help locating your temporary URL, you can find it in your Account Management Panel (AMP). Your temporary URL will resemble:

http://ecbiz107.inmotionhosting.com/~userna5

Note! You can get your temporary URL by navigating to your AMP technical details.

Configure WordPress to use temporary URL

  1. To use your temporary URL with WordPress, simply install WordPress on the domain itself. Do not be concerned with the temporary URL yet.
  2. 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.filemgr-wp-config
  3. Next, you will need to right-click on the file and select "code edit".code-edit
  4. 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.
    define('WP_HOME','http://ecbiz107.inmotionhosting.com/~userna5');
    define('WP_SITEURL','http://ecbiz107.inmotionhosting.com/~userna5');

    In your file, ecbiz107.inmotionhosting.com/~userna5 will need to be replaced with your own temporary url.

    wp-config-code-edit

    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 name

    When 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.

Alternatives to using the Temp URL

The temp url is a great way to get your WordPress site working prior to the site going live. There is another way to develop your WordPress site outside of the temp url. You can use a Hosts File mod on your local computer. The Hosts file mod "Fakes" your local computer in thinking the domain is on your server when in fact you are only connecting to the IP address. To learn more about modifying your Hosts file please see the following link.

Modifying Your Hosts File

Continued Education in Course 101: An introduction to WordPress
You are viewing Section 9: Installing WordPress using your Temporary URL
Section 8: Installing WordPress on an Add-on Domain
Section 10: Logging into your WordPress Dashboard
2013-12-03 9:46 am
changing wordpress back to your domain name...in the php file, i assume we do not use www. but just the http:/domain-name.com?
Staff
11,156 Points
2013-12-03 11:07 am
You may change it either way. If you installed int on your domain and changed it to your temporary URL as the article describes, simply removing the lines that you previously put into place will work as well.
n/a Points
2014-05-28 2:14 am

Thanks so much for your post on this. I found it via google search, helping a friend with the same problem, and this fixed it. Much appreciated.

n/a Points
2014-06-19 5:12 pm

Thanks, sir! Moving Wordpress always turns out to be trickier than I think (especially when you have to use a temporary url). This works great!

n/a Points
2015-03-10 10:02 am

A great way to do this is actually just link to the server IP address in your hosts file on your local machine, that way you it doesn't effect any site users until you're ready to go live. It also makes migrating broken wordpress installations rather than cloning a site a lot easier.

Go to your hosts file and enter 1 line replacing the IP with your server IP (works on shared hosting as well) and replacing mysite.com with your website url, then save the hosts file (windows users can find this in C:/windows/System32/drivers/etc/hosts - and can edit easily using notepad++(free download) or MS wordpad):

### Start IP resolve for new server ###111.11.11.133 www.mysite.com mysite.com

Staff
22,613 Points
2015-03-10 10:51 am
Hello Garratt,

Thanks for the post about the hosts file change. We have two articles (one for PC and one for Mac) that walks a person through the steps in doing this. I also agree that if you do the hosts file you save your self a lot of headaches with moving the site after finishing its development. There are cases where a customer will want a fully working site, from the same location. This is where I would recommend that the alternate site be an add-on domain and the primary site re-directs to it temporarily until development is completed.

Here are the links for the tutorials to modify the hosts files:

Modify Your HOST files in Windows

Modifying your HOSTS file on a Mac

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2015-04-13 10:51 am

I have used this successufully several times, but does this work the same with multi-site? I ask because I have a multisite install, used the steps outlined but the temp url opens my live site at another host.

Staff
22,613 Points
2015-04-13 11:34 am
Hello Barry,

The temporary URL is basically simply another route to the web server where the main URL would normally be pointing. The WP configuration would simply need to be setup with that URL properly. If you're using the temporary URL and it's going to another location entirely, then we would need to examine that URL as well as how you've applied it in the WordPress install. A multisite installation uses the same database for all of the installations. Basically, as long as the path is correct and the database can be reached, then using the temp URL should work.

Regards,
Arnel C.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

8 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!