Developing WordPress with a Temporary URL

There are a few cases where you might need use a temporary URL to access your WordPress site so you need to go in and change site_url and home in the WordPress database i.e.

  1. Your domain isn’t resovling to your hosting account yet so you need to use the temporary cPanel URL
  2. You can’t log into the WordPress Administrator Panel, because logging in takes you to a URL with your domain name in it and your domain isn’t resolving
  3. You can’t develop your new site at your domain name and so need to use the cPanel temporary domain while developing the new site

To use the cPanel temporary URL when developing your WordPress site two updates are required in the WordPress database.

Using phpMyAdmin which is found in the database section of your cPanel you open the WordPress database and locate the table wp_options.

In the wp_options table you locate the option_name ‘site_url’ and change the domain name to your cPanel temporary URL (something like htttp://89.200.138.256/~username) and click Go to save the change.

In the wp_options table you locate the option_name ‘home’ and change the domain name to your cPanel temporary URL (something like htttp://89.200.138.256/~username) and click Go to save the change.

After this you should be able to view your WordPress installation using the temporary URL.