Previewing your site with a temporary domain | GreggHosting

The affects of Web Hosts on Your Business Website

Here're ways your choice of web hosting service provider impacts the performance of your business:


Website loading speed


Uptime and availability


Customer support




Server location

Previewing your site with a temporary domain

Previewing your site with a temporary domain

temporary domain


This article discusses how to visit your site using a subdomain before pointing your DNS to GreggHost. Access the following article for another way to view your site at GreggHost before pointing DNS:

How to use your hosts file to view your GreggHost site
If you’re moving your site to GreggHost, you’ll need to point your DNS to your GreggHost site at some point. It is feasible, however, to test your site with GreggHost before changing your DNS. A subdomain can be used for this.

There are two choices, both of which are detailed below:

Option #1 (works with any website)
Directly uploading your website to the subdomain

If your site uses absolute links (like a WordPress site), you’ll need to manually change all URLs in the site’s files and database to the new temporary domain name. If you don’t, the site’s links will point to an existing site URL that isn’t hosted with GreggHost yet.

Option #2 (only works with simple sites that do not use an SSL certificate)
To ‘Mirror’ your actual site, upload it to GreggHost and then use the subdomain.

Please keep in mind that if your site has an SSL certificate, you won’t be able to use this option. This is because the GreggHost panel‘s mirror option will not work with another site’s SSL certificate.

Option #1 — Uploading your site directly to the subdomain
Uploading your site to a subdomain is the best solution. This is a free domain that you may use as a temporary site by adding it to your account. The tutorials below will show you how to set up a subdomain and then upload your website files and database.

What is a subdomain of
FTP credentials and overview
What is the process for moving my database to GreggHost?
What if my website is powered by WordPress?
If your site runs on WordPress or has absolute links (complete URLs to your site), you’ll need to alter those links manually in order for it to work on the subdomain.

Let’s imagine you have a website called and you’ve uploaded the contents to When you click on links at, they will transport you to the current live site of if your site has absolute links (that point to

All URLs in your database that point to your live website ( must be updated to to remedy this. How to update the URLs in your database to link to the new subdomain is explained in the following article:

How can I alter the URL of my WordPress site?
You should see resolving after you’ve modified all of the site’s URLs.

Returning to the original URL
When you’re ready to go live with your site, you’ll need to alter the URLs once more. To switch all URLs from the subdomain ( to your live site URL, simply reverse the steps above. You should direct your DNS only when the URLs have been modified.

On a GreggPress plan, using a subdomain
On any GreggPress plan, you can create a similar temporary domain. To learn more about how to use a subdomain with a GreggPress website, see the following article:
Option #2 — Viewing your site via a ‘Mirror’
Using a ‘Mirror’ to view your site Option #2 — Creating a GreggPress temporary domain
This option is only available if the following conditions are met:

Your website does not have an SSL certificate installed.
There are no absolute links on your website (full URLs to your site)
Add a subdomain of to your Manage Domains page for convenient web browsing. Then you may use it to create a mirror of your actual website. Instructions can be found in the following article:

Overview of the Mirror Domain
I’m waiting for DNS to be updated.
This newly-created mirror may take up to 6 hours to refresh, but once it does, you’ll be able to view your domain at GreggHost ( through the mirror at

You’re ready to point your DNS to GreggHost once you’ve confirmed the site appears and functions as it should. When you’re ready to point your DNS, go to the following pages for detailed instructions:

Overview of the Domain Name System
Overview of Nameservers
Do not attempt to access your GreggHost site using its IP address, as the IP address refers to the server, not the website. You’ll see a Site Not Found page if you visit the IP, which you can read about here:

The requested URL could not be found.

Viewing your MySQL database before DNS change
You can accomplish the same thing with a “temporary” MySQL host configuration if you need to access a MySQL database before DNS changes.

For more information, see the following article:

Before the DNS change, you can access your database.