---
title: Open your new hosting before the domain points to it
url: https://wp2wp.link/guides/preview-website-before-dns-change
language: en
updated: 2026-11-23
publisher: wp2wp.link
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language questions, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://wp2wp.link/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://wp2wp.link/agents"
---

# Open your new hosting before your domain points to it

Open the new hosting through the temporary address in its control panel, or with one line in your computer’s hosts file. Switch your domain over at the very end.

By [wp2wp.link](https://wp2wp.link/guides/about) · Updated 23 November 2026 · 5 min read

- Result: Your new hosting opens in your browser
- Cost: Free
- Your visitors: See the old site until you switch
- Domain switch: A few hours, up to two days

## Which way fits you?

- The temporary address: Works right away, if your host gives you one.
- The hosts file: Your real domain, on your computer only. About five minutes.

Until you switch it, your domain leads to the old hosting, or nowhere yet. So typing your domain doesn’t reach the new hosting.

## Before you start

- You can log in to your new host’s control panel.
- You know the file or page you want to open, for example the helper `reprint-web.php`.
- For the switch at the end: the login where you manage your domain.

## The temporary address

Many hosts give each hosting package an address of its own that works right away.

It may be called temporary address, temporary domain, preview or test domain. Look in the control panel near your website or domain:

| Control panel | Where to look |
|---|---|
| Plesk | Websites & Domains, the **Preview** button under your site’s name. Copy the whole address from the browser’s address bar. |
| Hostinger | Websites, the menu next to your site, **Website details**: the preview domain. |
| Bluehost | Websites, **Manage Site**, Overview: the temporary domain. |
| cPanel | Some hosts add a **Website Preview** button. Plain cPanel has none. |
| GoDaddy (cPanel hosting), SiteGround | Usually no temporary address for a site set up with your domain. Use the hosts file. |

1. Copy the whole temporary address, with `http://` or `https://` at the start.For example `https://abc123.example-host.com`.
2. Add the file name to the end of the address.The helper then opens at `https://abc123.example-host.com/reprint-web.php`. The wp2wp.link guide builds that link for you when you paste the address.
3. Open that link in your browser.

No temporary address? Ask your new host’s support: “Is there a temporary or preview address for my hosting, so I can open it before I point my domain to it?”

## The hosts file

One line in your computer’s hosts file sends only your computer to the new hosting when you type your domain.

Check first: this way opens your domain with `http://`. For some domains, browsers refuse that. The wp2wp.link guide checks your domain and only suggests the hosts file when it works. Otherwise use a temporary address, or ask your host’s support for one.

1. In your new host’s control panel, look up the hosting’s IP address.Or ask its support.
2. Add one line to your hosts file: the IP address, then your domain.It takes about five minutes: [change the hosts file on Windows, Mac or Linux, step by step](https://wp2wp.link/guides/edit-hosts-file).
3. Open your domain with `http://` in your browser.Only your computer sees the new hosting. Your visitors notice nothing.

## At the end: point your domain to the new hosting

Once the copy is finished, switch the domain so everyone sees the new site.

Email: new nameservers replace all of your domain’s settings, including where email goes. If your email works today, change only the A records, or have your new host copy the email settings (MX records) first. Mailboxes at the old host stop when that hosting ends: copy them before, for example with [mail2mail.link](https://mail2mail.link/).

1. Ask your new host what to enter.Usually two or more **nameservers** (names like `ns1.example-host.com`), or one **IP address** for the domain’s A record.
2. Log in where you manage your domain.That’s the company you pay for the domain, which may be your old host.
3. Enter the new nameservers, or change the A record to the new IP address, then save.Change the A record for `www` too if it has its own.
4. Wait for the change to reach your visitors.Most visitors see the new site within a few hours. For some, it can take a day or two.
5. At your new host, turn on the free SSL certificate for your domain.Until then your browser may show a security warning.
6. Keep your old hosting a few more days.For a day or two, some visitors still land there.
7. If you changed your hosts file, remove that line again.

## How you know it worked

- Before the switch, the temporary address, or your domain on your computer, shows the new hosting.
- After the switch, your domain shows the new site without a security warning.
- Your email still arrives.

## If something goes wrong

### My domain shows “page not found”, an error or a security warning

Your domain still leads to the old hosting. So a file on the new hosting, like `your-domain.com/reprint-web.php`, can’t be opened yet. Use the temporary address or the hosts file.

### My new site redirects to the old one

WordPress sends every visitor to your real domain, which still leads to the old hosting. Use the hosts file to see the new site under your real domain, or switch the domain.

### My browser warns about the certificate on the new site

That’s normal before the switch. Your new host can only create the free SSL certificate once your domain points to it. You can continue to the site. The warning goes away once the certificate is on.

### The IP address only shows the host’s default page

On shared hosting, many sites share one IP address, so the address alone shows the host’s default page. Use the hosts file instead.

## Questions

### Will visitors see a broken site while I work?

No. Until you switch the domain, they keep seeing the old site.

### Do I lose orders or comments when I switch?

Anything that arrives on the old site after you copied it stays there. Switch at a quiet time, soon after the copy.

wp2wp.link walks you through the whole move and shows you which way to open your new hosting.

[Start your move](https://wp2wp.link/#migrate)Free · No account

### Sources, checked 20 November 2026

[Plesk: previewing websites](https://docs.plesk.com/en-US/obsidian/reseller-guide/website-management/websites-and-domains/previewing-websites.69679/), [Hostinger: website without a domain](https://www.hostinger.com/support/2489693-how-to-see-your-website-content-without-a-domain/), [Bluehost: temporary URL](https://www.bluehost.com/help/article/using-your-temporary-url-with-wordpress), [GoDaddy: preview your website](https://www.godaddy.com/help/preview-your-website-3950), [SiteGround: hosts file](https://eu.siteground.com/kb/hosts-file), [cPanel: create a new domain](https://docs.cpanel.net/cpanel/domains/domains/create-a-new-domain/).

## Related guides

- [Change the hosts file to open a new host](https://wp2wp.link/guides/edit-hosts-file)
- [Migrate a WordPress site to a new host](https://wp2wp.link/guides/migrate-wordpress-to-new-host)
- [Move a local WordPress site to a live server](https://wp2wp.link/guides/local-wordpress-to-live-server)
