Redirecting a domain is not the same as changing its DNS. This guide explains which layer should handle the redirect, how domain forwarding differs from DNS configuration, and how to verify HTTPS, paths, query strings, email, and SEO behavior before you switch anything.
Overview
A domain redirect sends visitors from one hostname or URL to another. For example, old-example.com might redirect to new-example.com, or www.old-example.com/products might redirect to a matching page on a new site. The visible result is simple, but several technical systems can be involved.
DNS tells a browser where to find a service. It can point a hostname to an IP address with an A or AAAA record, or to another hostname with a CNAME record. DNS does not, by itself, return an HTTP 301, 302, or 307 response and cannot independently instruct a browser to visit a different URL.
Domain forwarding is a redirect service supplied by a registrar, hosting provider, CDN, or other platform. The provider receives the web request and returns an HTTP redirect response. A web server, application, or edge rule can do the same thing with more control.
For SEO-focused permanent moves, a correctly implemented 301 redirect is usually the relevant choice. Temporary campaigns, tests, or short-term maintenance may need a 302 or 307 instead. The status code is only one part of the implementation: the destination, redirect chain, HTTPS certificate, path handling, and internal links also need review.
Domain forwarding and DNS compared
| Method | What it does | HTTPS support | Path and query handling | Email impact | Typical control |
|---|---|---|---|---|---|
| Registrar forwarding | Provider receives the request and issues a redirect | Depends on the provider and certificate coverage | May preserve, rewrite, or discard them; verify before use | Usually separate from web forwarding, but DNS changes can affect mail | Simple interface with limited rules |
| Web server redirect | Apache, Nginx, or another server returns the redirect | You must serve the source hostname over HTTPS with a valid certificate | Usually highly configurable | Independent if mail records remain unchanged | High control over status codes, paths, and conditions |
| CDN or edge rule | Redirect runs at the network edge before the origin | Requires the domain to be added and secured at the provider | Often supports pattern matching and parameter rules | Separate from mail, provided DNS is managed carefully | High control, but provider-specific configuration |
| DNS-only change | Points the hostname to a service; does not redirect by itself | Handled by the destination service, not DNS | DNS has no path or query-string logic | Can affect mail if records are replaced or proxied incorrectly | Controls hostname resolution only |
The safest option depends on the job. Use registrar forwarding for a basic domain-level move when its HTTPS and path behavior meet your needs. Use a web server or CDN when you need precise rules, migration mappings, query-string decisions, logging, or consistent handling across HTTP and HTTPS.
Checklist by scenario
Scenario 1: You bought a domain and want it to point to an existing website
- Decide whether the new domain should be the primary address or simply an alternate entry point.
- Choose the redirect destination, including the preferred protocol and hostname, such as
https://www.example.comorhttps://example.com. - Confirm that the destination is final. Avoid redirecting to a URL that already redirects elsewhere.
- Set the domain's nameservers or DNS records according to the chosen forwarding, hosting, or CDN provider's instructions.
- Enable forwarding for both the bare domain and relevant hostnames, commonly the root domain and
www. - Test HTTP and HTTPS variants, then test a path such as
/aboutand a URL with a query string.
If the registrar's forwarding tool cannot preserve useful paths or query parameters, point the domain to a small web server or edge service that can apply explicit redirect rules.
Scenario 2: You are moving an entire website to a new domain
- Create a source-to-destination redirect map before changing DNS. Match important old URLs to their closest relevant new URLs rather than sending every page to the new homepage.
- Keep the old domain active and able to serve redirects. Do not cancel the old hosting or remove its certificate immediately after launch.
- Implement permanent redirects at the server or CDN layer, where you can manage individual paths and patterns.
- Use one direct redirect wherever possible. A request should not travel from an old URL to an intermediate URL and then to the final page.
- Update internal links, XML sitemaps, canonical tags, structured data, campaign links, and important external profiles.
- Crawl the old URL set and test representative pages, including redirected pages, missing pages, images, documents, and parameterized URLs.
For a reusable migration workflow, see How to Build a URL Redirect Map for an SEO-Safe Website Migration. A redirect preserves a route to the new page; it does not replace the need to update the site's own references.
Scenario 3: You need HTTP, HTTPS, www, and non-www consolidation
- Choose one canonical hostname and protocol.
- Install a certificate that covers every source hostname visitors may request, including the redirecting hostname.
- Configure the redirect at the earliest reliable layer, such as a CDN or web server.
- Test all combinations: HTTP root, HTTPS root, HTTP
www, and HTTPSwww. - Confirm that each variant reaches the chosen canonical URL in one response.
Certificate validation occurs before an HTTPS request can receive an HTTP redirect. Therefore, an HTTPS source hostname still needs valid certificate coverage even when its only purpose is to redirect. Use the HTTP, HTTPS, www, and non-www redirect guide when reviewing canonicalization.
Scenario 4: You need a simple temporary or campaign redirect
A registrar forwarding feature or CDN rule may be sufficient for a campaign, event, QR code, or short-lived landing page. Define whether the destination should retain UTM parameters, whether existing query strings should be appended, and when the rule will be retired. For QR destinations, test the printed or distributed URL on multiple devices before launch; the QR code should point to a controllable URL rather than an inflexible final page when future changes are likely. See QR Code Redirects for a campaign-oriented checklist.
Scenario 5: You need email to keep working
Web forwarding and email delivery are different functions. Review the MX records, mail-related TXT records, and any provider-specific records before changing nameservers or replacing a DNS zone. Do not assume that a web redirect provider will host email. If mail is working, document the current records and make only the DNS changes required for the website or redirect service.
What to double-check
Path and query-string behavior
Ask exactly what happens to a request such as https://old.example.com/catalog/item?utm_source=newsletter. Does it become the equivalent path on the new domain? Are tracking parameters preserved, stripped, or duplicated? A provider may offer a single domain-level redirect without the path-level controls needed for a site migration. Read its current documentation and test actual requests rather than relying on a label such as “forward with masking.”
Parameter rules should have a clear purpose. Preserve attribution parameters that your analytics process needs, but avoid carrying obsolete, sensitive, or uncontrolled values into the destination. The guide to URL query parameter redirects covers decisions about preserving, stripping, and normalizing parameters.
Redirect status and chains
Check the complete response sequence with a browser developer tool, command-line request, or redirect checker. Confirm the status code, Location header, final URL, and number of hops. A permanent domain move should normally use a permanent redirect, while a temporary test should not be treated as a permanent consolidation. Avoid chains such as old URL to HTTP URL to HTTPS URL to final hostname. Combine compatible rules so the source goes directly to the final address.
DNS records and nameservers
Record whether DNS is managed at the registrar, hosting company, CDN, or a separate DNS provider. The active nameservers determine which zone is authoritative. Editing records in an inactive dashboard will not change live behavior.
Before editing, export or document the existing zone. Check A, AAAA, CNAME, MX, TXT, and any verification records. An old AAAA record can send some visitors to an IPv6 service that does not have the same redirect rule as the IPv4 service. A CNAME at www does not automatically create forwarding for the root domain.
HTTPS and certificate coverage
Test the source domain over HTTPS, not only HTTP. Confirm that the certificate matches each hostname and that the redirect service accepts the request before sending it onward. If HTTPS fails with a certificate warning, the redirect has not successfully protected the visitor, even if the HTTP version works.
Security and access control
Only allow redirects to approved destinations or controlled patterns. Avoid rules that accept an arbitrary destination from a query parameter, since they can create an open redirect vulnerability. Review who can edit registrar forwarding, DNS, CDN, and server rules. Keep a change record for domain redirects because a small rule can affect search traffic, campaigns, and trust.
Common mistakes
- Expecting DNS to redirect a URL: DNS can direct a hostname to a service, but the service must generate the HTTP response.
- Redirecting only the root domain: Visitors and search engines may request
www, HTTPS, deep paths, or old campaign URLs separately. - Using URL masking: Framing or masking can obscure the real destination and may create confusing behavior. Prefer a transparent HTTP redirect when a redirect is the requirement.
- Breaking email while changing web DNS: Replacing a complete DNS zone without copying mail records can interrupt delivery or authentication.
- Forgetting the HTTPS source: A certificate error occurs before the visitor can follow an HTTPS redirect.
- Sending every old page to the homepage: This loses relevance and can leave useful backlinks pointing to an unhelpful destination. Map pages to their closest valid replacements.
- Creating loops: Conflicting registrar, CDN, server, or WordPress rules can send a request back to its original URL. Disable overlapping rules and test each layer.
- Leaving temporary rules indefinitely: Campaign and maintenance redirects should have an owner, purpose, review date, and retirement plan.
- Changing too many variables at once: Make a DNS or redirect change, record the time and scope, then verify before applying another change.
For large rule sets, use a documented import and review process. The bulk redirect management guide can help with deduplication and safe retirement. Before launch, use the redirect testing checklist to test representative URLs in a controlled environment.
When to revisit
Recheck your domain redirect setup whenever you buy or retire a domain, change hosting, move a CDN, consolidate brands, redesign URL structures, or change email providers. It is also worth reviewing before seasonal campaigns and whenever a workflow or provider interface changes.
At each review, run this short checklist:
- Confirm the intended canonical domain, protocol, and redirect status.
- Test root,
www, HTTP, HTTPS, deep-path, and query-string variants. - Inspect the full redirect chain and look for loops or unexpected intermediate URLs.
- Verify certificate coverage for every redirecting HTTPS hostname.
- Check DNS records and confirm that mail-related records remain intentional.
- Review logs, analytics, broken backlinks, and campaign attribution for failures.
- Remove obsolete rules only after confirming that they no longer serve users, backlinks, or active campaigns.
A domain redirect is reliable when the right system handles the right job: DNS locates the service, while the registrar, server, CDN, or application returns the redirect. Document that division, test the complete URL variants, and revisit the configuration whenever the domain, destination, or supporting tools change.