InMotion Hosting Support Center

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.

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 (via the nameservers) to your account hosted on 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 be similar to the following format:

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. description of image

    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.

  3. description of image

    To open the file to edit it, you will need to right-click on the file and click on Edit.

  4. This will open the actual code of the file, and you will need to insert two lines of code after the first line of the file (<?php) to set your temporary URL as the way to access your WordPress installation.

  5. Save the changes by clicking the Save Changes button in the upper right corner.

Congratulations! You have successfully changed WordPress to use your temporary URL.

Re-configure WordPress to Use Your Domain Name

When you are done testing your website using the temporary URL you will want to edit the wp-config.php file again and modify the code you entered into the file. Open the wp-config.php file with the file manager editor and replace your temporary URL with your actual domain name.

Alternative to Using the Temp URL

The temporary url is a great way to test your WordPress site is working prior to the site going live. There is another way to develop your WordPress site outside of the temporary url. You can perform a hosts file modification on your local computer. The hosts file modification "Fakes" your local computer in thinking the domain is on your server when in fact you are only connecting to the IP address.

Was this article helpful?
Continued Education in Course 101: An introduction to WordPress
You are viewing Section 13: Installing WordPress Using Your Temporary URL
Section 14: Logging into your WordPress Dashboard

Related Questions

Here are a few questions related to this article that our customers have asked:
How do I use a Temporary URL for website testing?
I changed my wordpress url by accident
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2017-11-21 7:57 am

Thanks for the tutorial. This has worked great. However, the images seem to not be loading. I click to view the image scr and gives me a 404 page. Any ideas on how to fix this?

Kind Regards


10,806 Points
2017-11-21 10:19 am
It may be well advised to check the URL that the site is attempting to load, specifically if it is trying to load a domain name or the Temp URL used as a substitute. If it's loading an undesired domain, check the home page settings listed in the article against what you currently have.
n/a Points
2017-09-16 11:41 am

Hi! I'm building my 3rd site with my active domain pointing to the old host. I used to be able to change the below to my temp url by clicking code edit but now there's only the edit option and I can't find the below:




31,316 Points
2017-09-18 9:52 am
If it is not there, simply edit the file and insert the two lines of code after the first line of the file to set your temporary URL.

If you have access to the Dashboard, you can also make the change there. This and all methods for changing site name are covered in our full guide here:
WordPress - Changing the Site URL and Home Settings

Thank you,
n/a Points
2017-05-05 2:01 pm

Thanks !   I installed it per the instructions as the first two lines, and that didn't work. 

I then changed the location to line 2 and 3 after the "<?php" line, and it worked great.

I tried the "host" modifcation method, and it brought me to my inmotion hosting page,but never to the Wordpress page. 

2,858 Points
2017-05-05 2:52 pm
Bob, thanks for pointing that out! I have updated, and corrected the article now!
n/a Points
2017-02-15 2:25 am

In the wp-config.php code, do the two lines of code with the temporary URL go before or after the <?php, or somewhere else?

42,432 Points
2017-02-15 4:57 pm
Hello Tom T,

It would be after
If you have any further questions or comments, please let us know.

Arnel C.
n/a Points
2017-02-09 11:16 pm

I have a live WP site that I want to leave up on my old host while I develop a new site for my client in my reseller account with you.  I need to access the old site from my computer using their domain at the same time I'm installing WP and developing the new site.  So I don't think the 'hosts mod file' trick will work for this -- correct?  I should use their temporary domain for installing WP etc here?

2,858 Points
2017-02-10 10:02 am
You could certainly use a host file mod, but this would involve changing the hosts file and clearing your browser cache every time you wanted to see the 'other' site. In this case, it sounds like using these instructions for using the 'temporary' URL instead would be easier during development.
n/a Points
2015-10-19 9:19 am

Hi all.

I'm using a temp URL because I have requested my Moroccan domain to be pointed at inmotion, but its probably going to take some time to be recognized, and I want to get started building a website right away.

I went through the Inmotion steps to create a temp URL so that Wordpress recognizes my domain, but now am not sure what to do in order to get started. 

I typed in the temp URL and it seemed to work (ie, took me my site via Wordpress).  But then when I typed in 'wp-admin' (which I think I need to do in order to starting building my site), it asks for a username and password.  But it seems I can't create a Wordpress account/profile because it asks for my domain right out of the box, and it doesn't recognize mine as valid.

In other words, it seems as though I still must wait for my domain to be pointed correctly notwithstanding that I now created a temp URL.

...or is there another way...

43,761 Points
2015-10-19 5:33 pm
Instead of using the temp URL, you can always set up a hosts file mod. But the domain name in the registration should not matter. Are you getting some sort of error?
n/a Points
2015-10-20 5:47 am

Thanks Scott.  I saw that 'hosts file mod" and that may make more sense.


Thanks for the information.

n/a Points
2015-08-19 12:23 am

Homepage loads but pages do not.

I used this method to migrate a Wordpress site from another host and test before updating the nameservers. The homepage of the site loads correctly, but when going to any link, I get a blank page displaying my IP address.

Please help. Thanks! 

42,432 Points
2015-08-19 10:35 am
Hello Josh,

Sorry for the problems with the temp URL. We would need more information about your installation including where you installed the WordPress files. We can troubleshoot the installation if you are a customer o InMotion Hosting.

Arnel C.
n/a Points
2015-08-23 6:49 pm

Your support team fixed the issue for me via chat. The Wordpress permalinks needed to rebuilt's as simple as logging into WP, settings > permalinks, and then clicking save. No changes need to be made. Hope this helps someone else!

n/a Points
2015-07-29 2:20 am

Thank you..

It helped me a lot!

n/a Points
2015-07-20 5:32 pm

I'm receiving a 403 error while trying to edit a page in my Wordpress instance, while using the temporary url... Any direction on how to resolve this issue? I've disabled plugins, and still no joy.



43,761 Points
2015-07-20 5:47 pm
Hello Bart,

Using the temp URL is not always the best way to view proper behavior in WordPress. You may want to try a hosts file modification to see if that helps.

Kindest Regards,
Scott M
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.

42,432 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.

Arnel C.
n/a Points
2015-09-15 6:42 am

I am having the same problem as Barry with a multi-site.

42,432 Points
2015-09-15 6:03 pm
Hello Rand Hoppe,

As per my response to Barry, the temporary URL depends on the settings you have entered for your WordPress installation. The temp URL is simply another way to reach the files and folders that make up your WordPress install. As long as your temp URL has properly replaced where the normal URL would be, then it should work. Check out this post on troubleshooting a WordPress multi-site using the temp URL. It may also provide some information to help you with your particular problem.

I hope this helps to answer your question, please let us know if you require any further assistance.

Arnel C.
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 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 ###

42,432 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.

Arnel C.
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
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.

11,186 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.
2013-12-03 9:46 am
changing wordpress back to your domain the php file, i assume we do not use www. but just the http:/

Post a Comment

Email Address:
Phone Number:

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

29 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


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:
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!