The Website Previewer

Blog

How to Preview a WordPress Site on a New Server Before DNS Changes

March 16, 2026
How to Preview a WordPress Site on a New Server Before DNS Changes

Moving a WordPress site is a common task. Whether you are moving to faster hosting, switching providers, or consolidating servers, you need to verify that the site works on the new server before pointing DNS.

Test the new server before you change DNS. Open the free preview tool

The guide to previewing a website before DNS changes covers the same checks for any host.

The traditional approach is editing your local hosts file. This works, but it only affects your own device, and it is easy to forget to undo. If you need your client, QA team, or designer to also check the site, everyone has to make the same change.

A preview URL solves this. It routes traffic to the new server while loading the original domain name, so WordPress behaves exactly as it would after DNS propagation, but without touching DNS at all.

Step-by-Step: Preview Before DNS

  1. Complete the migration: Transfer files, database, and configuration to the new server. Make sure WordPress core, plugins, and themes are in place.
  2. Go to hostsclick.com: Enter the target domain (e.g., example.com) and the new server IP address.
  3. Click generate: You get a preview URL like abc123.hosts.li that routes to the new server.
  4. Share the link: Send it to your client or team. No hosts file editing needed, works on any device including phones and tablets.
  5. Test thoroughly: Check the homepage, key pages, forms, WooCommerce checkout, login, and admin panel.
  6. Cut DNS: Once everything looks good, update your DNS records.

What to Check on the Preview

WordPress migrations can break in subtle ways. Use the preview to verify:

  • Homepage and key pages: Do they load without errors? Are images displaying?
  • SSL certificate: Is HTTPS working on the new server? hosts.click provides SSL automatically on the preview URL.
  • Internal links: Are links pointing to the correct domain? WordPress stores absolute URLs in the database, so a search-replace is usually needed after migration.
  • Redirects: Do your SEO redirects (e.g., from an old URL structure) still work?
  • Contact forms: Can the new server send emails? Test form submissions.
  • Login and admin: Can you access /wp-admin?
  • WooCommerce: If applicable, test product pages, cart, and checkout flow.
  • Performance: Is the site faster on the new server? Check load times.

Common WordPress Migration Issues

These are the problems that catch people after DNS cutover, when it is too late:

  • Mixed content warnings: Some resources still loading over HTTP instead of HTTPS.
  • Hardcoded URLs: The database contains the old server IP or a staging domain.
  • Missing plugins or themes: Files that were not transferred during migration.
  • PHP version mismatch: The new server runs a different PHP version, causing plugin errors.
  • Broken .htaccess: Rewrite rules that worked on the old server but not the new one.
  • Database connection errors: Wrong credentials in wp-config.php.

All of these are visible on a preview URL before you change DNS. Finding them after DNS propagation means real users see broken pages.

Run an SEO Crawl Before Going Live

If your WordPress site depends on organic search traffic, use the hosts.click Website Crawler to run a technical SEO scan on the preview link. It detects:

  • Broken internal and external links (404 errors)
  • Missing meta titles and descriptions
  • Duplicate content issues
  • Redirect chains
  • Missing canonical tags
  • Crawl depth problems

Fix these before DNS cutover so your rankings stay stable through the migration.

Preview With cPanel or DirectAdmin

If your hosting uses cPanel or DirectAdmin, you can generate preview links directly from the control panel:

These are free and require no separate login.

Summary

Do not change DNS and hope for the best. Preview the WordPress site on the new server first, share the preview with everyone who needs to approve it, and only cut DNS when you are confident everything works.

Generate a free preview link now

Related Guides

Improve Preview Workflows

Use these focused guides for DNS previews and control panel integrations.

Toggle navigation