Redirecting one domain to another is usually straightforward, but the correct method depends on where you control the domain, DNS, hosting and web server. This guide compares registrar forwarding, hosting-panel rules, Apache, Nginx and Cloudflare, then provides a reusable checklist for setting up, testing and maintaining a reliable domain redirect.
Overview
A domain redirect sends visitors from one hostname to another destination. Common examples include sending an old brand domain to a new domain, forwarding a parked domain to an active website, consolidating www and non-www versions, or moving from an old HTTP address to HTTPS.
For a permanent move, use a server-side 301 redirect where possible. A 301 tells browsers, crawlers and other clients that the destination is intended to replace the original address. A 302 redirect is more appropriate when the forwarding is temporary or the original destination is expected to return. See 301 vs 302 redirects for the status-code decision in more detail.
There is an important distinction between DNS and redirects. DNS connects a hostname to an IP address or another DNS record; it does not, by itself, return an HTTP 301 or 302 response. The redirect normally has to be handled by a registrar forwarding service, a hosting control panel, a web server, an application, or an edge platform such as Cloudflare.
| Option | Best suited to | What to check |
|---|---|---|
| Registrar or domain forwarding | A simple domain-to-domain move without managing a server | Whether forwarding supports HTTPS, paths and a permanent status code |
| Hosting control panel | Shared hosting or managed hosting | Whether the rule is created for every required hostname |
| Apache | Sites using .htaccess or Apache configuration | Rule scope, rewrite syntax and avoidance of loops |
| Nginx | Server-managed sites using Nginx | Server block coverage, configuration testing and reload procedure |
| Cloudflare or another edge platform | Centralised routing at the network edge | DNS proxying, certificate coverage and rule precedence |
The simplest reliable choice is usually the one that gives you control over the full request: hostname, protocol, path and query string. If search visibility matters, avoid forwarding every old URL to an unrelated homepage. Map important old URLs to their closest relevant destinations instead. Our guide to building a bulk redirect map covers this process for larger changes.
Checklist by scenario
Scenario 1: Redirecting a parked domain
- Confirm that you control the domain registration and can edit its DNS or forwarding settings.
- Decide whether both the bare domain and the
wwwhostname should redirect. For example, testold-example.co.ukandwww.old-example.co.ukseparately. - Choose the exact destination, including the protocol and preferred hostname, such as
https://www.new-example.co.uk/. - Use registrar forwarding if it supports a permanent redirect and the HTTPS behaviour you require. If it does not, point the domain to a hosting service or edge platform that can issue the redirect.
- Test the old domain in a redirect checker and confirm that it reaches the intended destination in one step.
Scenario 2: Redirecting an old website to a new domain
- Create a redirect map containing the old URL, the new URL, the intended status code and any notes about exceptions.
- Keep the old domain registered and technically reachable. A redirect cannot work after the domain registration or DNS service has been allowed to lapse.
- Implement direct path-to-path redirects for valuable or frequently visited pages rather than sending every request to the new homepage.
- Preserve relevant paths and, where appropriate, query strings used for campaigns or technical functions. Review tracking parameters before deciding whether to retain them.
- Update internal links, XML sitemaps, canonical tags and campaign links so that the new domain is the direct destination.
- Monitor for missing pages, redirect chains and unexpected loops after launch. The redirect chains and loops guide provides a troubleshooting workflow.
Scenario 3: Choosing a server or platform method
Use a hosting panel when you need a guided interface and the host exposes the required redirect settings. Use Apache or Nginx when you manage the server and need precise rules, regular expressions or large-scale configuration. Use an edge platform when routing needs to happen before the request reaches the origin server, or when several domains are managed centrally.
For Apache, redirect rules may be placed in a virtual-host configuration or, where enabled, an .htaccess file. For Nginx, they normally belong in the relevant server block. In either case, make the rule as narrow as practical and test the configuration before reloading the service. Platform-specific examples are collected in Apache vs Nginx redirects.
What to double-check
- HTTPS coverage: Make sure the old domain can accept HTTPS requests if users, browsers or links may request
https://. A redirect that works only over HTTP leaves a gap for secure requests. - Hostname coverage: Check the bare domain,
wwwversion and any relevant subdomains independently. DNS records and certificates may differ between them. - Status code: Confirm that a permanent move returns 301, not an accidental 302 or a server error. A status code checker can reveal what the browser address bar alone cannot.
- Destination accuracy: Verify spelling, protocol, trailing-slash behaviour, paths and query parameters. A correct domain with an incorrect path can still produce a poor user experience.
- Chain length: The old address should normally point directly to the final canonical URL. Avoid old domain to HTTP, then HTTPS, then
www, then a campaign URL. - Canonicalisation: A redirect removes an old accessible address; a canonical tag signals a preferred version among similar accessible pages. They solve different problems. Read Canonical URL or Redirect? before using one as a substitute for the other.
- Security: Avoid rules that accept arbitrary user-supplied destinations. Open forwarding can be abused for phishing or can make a trusted domain appear to endorse an unsafe link. See how to secure URL forwarding.
Common mistakes
Changing DNS and expecting a redirect. An A or CNAME record can direct traffic to infrastructure, but it does not automatically tell a browser to change URL. You still need forwarding or server-side redirect logic.
Redirecting only one hostname. A rule for www.old-example.co.uk may not cover old-example.co.uk. Include both where they are in use, and include HTTP and HTTPS handling where supported.
Creating a redirect loop. This often happens when the old and new domains share a host and a broad rule does not exclude the destination hostname. Test each hostname after every configuration change.
Using a temporary redirect for a permanent rebrand. A 302 may be correct during a short test, but it is not the default choice for a completed domain migration. Decide deliberately and document the reason.
Letting the old domain expire. Keep the registration, DNS and redirect service active for as long as old links, printed materials and search results may send visitors there.
Testing only in one browser. Browsers cache redirects, which can hide a changed rule. Test with a redirect checker, command-line request or clean session, and record the response chain. Follow the staged approach in the redirect testing and rollback workflow.
When to revisit
Review domain forwarding before launching a new brand, retiring a website, changing hosting, moving from HTTP to HTTPS, or consolidating www and non-www addresses. It is also worth checking before seasonal campaigns if QR codes, printed adverts or saved links still use the old domain. A destination that is correct for one campaign may become outdated when a landing page, tracking scheme or product path changes. For QR-based campaigns, plan a stable redirect destination rather than printing a URL that cannot be changed; see QR code redirect planning.
Keep a short redirect register with the source domain, hostname coverage, destination, status code, platform, owner and last test date. After any DNS, hosting or rule change, run this action list:
- Check DNS resolution for each required hostname.
- Request HTTP and HTTPS versions of the old domain.
- Confirm the first response is the intended 301 or 302.
- Record the complete chain and verify there is one final destination.
- Test representative paths, query strings and important old URLs.
- Check server logs, analytics and search tools for errors or unexpected traffic patterns.
- Update documentation and schedule the next review when the underlying domain or campaign changes.
This checklist keeps a domain redirect maintainable rather than treating it as a one-off setting. If you need to inspect a live response, use the redirect checker guide to review status codes, destinations and chains.