Article

How to Redirect Secondary Domains to Your Main Site (DNS, 301 vs 302, Email Safe)

By Unlimited Verifier Team ·

Diagram of a secondary domain redirecting through DNS and a 302 response to a main site, with MX records left unchanged.

Summary

To redirect a secondary domain, point its A record and www CNAME at a host that returns an HTTP 301 or 302 to your main site, preserving the path. Leave MX, SPF and DMARC records untouched so email keeps working, and verify with dig and curl.

To redirect a secondary domain to your main site, point its DNS at a server or redirect service that returns an HTTP 301 or 302 to your main site's URL, then leave the MX and SPF records untouched. Once you have DNS access, the change itself is short. The TTL wait and testing take longer. Done carelessly, a redirect can break replies, trigger certificate warnings, or tie a sending domain to your brand in ways you did not intend. This guide covers the web, DNS and email layers, the choice most teams get wrong, and a worked example with real arithmetic. It sits within our cold email infrastructure guide.

Quick answer

What does redirecting a secondary domain actually do?

A redirect is an instruction in the web layer. When a browser requests the domain, DNS points it at a server, and that server replies with a status such as 302 Found plus a Location header naming your main site. The browser then loads the destination.

Three systems are involved, each with its own records:

Failures usually trace to one of two layers. HTTP mistakes produce broken or looping pages. DNS edits made for the website often remove records that mail depends on.

Teams redirect for two reasons. Recipients often check a sender's domain before replying, and a domain that resolves to a known brand looks more legitimate than a parked page or a browser error. Permanent redirects from domains with inbound links also generally pass link signals to the destination, according to Google's Search Central guidance.

A redirect does not change the reputation of the sending domain or its IPs. Google's and Yahoo's sender requirements focus on authentication, complaint rates and list quality, not web redirects.

Bottom line: A redirect changes what a visitor sees. It does not change how mailbox providers judge the domain's mail.

Should you redirect a secondary domain at all?

Redirect a secondary domain when it is a brand asset: a typo variant, an old brand name, a country-code version, or a domain customers are likely to type. A throwaway sending domain needs a different answer, because a redirect ties every burned domain back to your brand.

Work through four questions before you change any DNS:

  1. Will this domain receive mail? If yes, its MX records stay, and the redirect must not replace them.
  2. Will you repoint or retire it within a year? If yes, use a 302.
  3. Is it a sending domain you may have to burn? If yes, a neutral page with your company name and contact address often serves recipients better than a redirect.
  4. Does it carry inbound links or old brand equity? If yes, a permanent 301 consolidates that value on your main site.
Situation Redirect to main site? Reasoning
Typo or old-brand domain you own permanently Yes, with a 301 Permanent consolidation; passes link value
Country-code or product-name variant Yes, with a 301 or 302 Recipients who type it reach the right place
Sending domain in a rotation pool Usually no A visible link to your brand makes burns more costly
Sending domain you will keep for years Optional, with a 302 You can repoint later without stale cached 301s

If you run inbox rotation across many domains, treat each one as disposable by default and decide its public face deliberately. A redirect is one option, not the default.

Bottom line: Redirect brand-owned variants permanently. For rotating outreach domains, choose the public face on purpose.

What's the difference between a 301, a 302 and URL forwarding?

A 301 means "moved permanently," and a 302 means "found, but temporarily," as defined in RFC 9110. Both send the browser to the Location target. The practical difference is caching. Under RFC 9110, a 301 is cacheable by default, so browsers can keep sending visitors to the old target after you change it. A 302 avoids that trap, which makes it the safer default when the arrangement might change.

Registrar URL forwarding is the simplest option, but behaviour varies. Some providers return a true redirect. Others use masked forwarding, which loads your site inside a frame at the original URL. Masking can hide the path, break deep links and confuse link scanners, so check which one you have.

Method How it works HTTPS on secondary domain Path preserved Best for Watch out for
Registrar URL forwarding Registrar's server returns the redirect Varies by provider Varies; test it 1–3 domains with simple needs Masked forwarding; little control
Hosted redirect service or CDN rules DNS points to a managed edge that returns the redirect Yes, with a managed certificate Yes, if the rule uses the request path Many domains, managed centrally Per-provider setup; certificate configuration
Self-hosted nginx or Apache You run a small server with one config file You manage certificates, for example with Let's Encrypt Yes, using $request_uri 4+ domains, full control Certificate renewal and server upkeep

Bottom line: Use a 302 when you may repoint the domain and a 301 for a truly permanent move. Accept masked forwarding only after you have checked what it does to paths.

How do you point DNS without breaking email?

Keep web and mail records separate, and never let a web change remove MX records. Three rules cover most cases.

A CNAME cannot sit at the zone apex. RFC 1034 prohibits a CNAME alongside other record types at a node, so the bare domain needs an A or AAAA record, or your provider's ALIAS or ANAME equivalent. The www label can use a CNAME.

Removing MX can redirect mail to the wrong server. If a domain has no MX record, RFC 5321 lets mail fall back to the apex A record. If that A record now points at your redirect server, inbound mail goes to a web server that will not accept it. This is one of the most common accidental email failures in redirect projects.

Domains that never receive mail can publish a null MX. RFC 7505 defines 0 ., which tells senders the domain accepts no mail.

Lowering TTLs also needs care. Suppose the apex record currently has a TTL of 3600 seconds (one hour). If you lower it to 300 seconds on the same day as the change, resolvers may still hold the old 3600-second answer for up to an hour. Lower the TTL at least one full old-TTL period before you change the record. Then a rollback reaches most caches in about five minutes instead of one hour.

Here is a record set for a domain that sends, receives and redirects. 192.0.2.10 is a placeholder from the documentation range in RFC 5737.

Host Type Value Purpose
@ A 192.0.2.10 Points the bare domain at the redirect server
www CNAME example-outreach.com. Follows the apex
@ MX Your mailbox provider's records Mail delivery, untouched by the redirect
@ TXT v=spf1 include:_spf.your-provider.example -all SPF; use your sending provider's include
_dmarc TXT Your DMARC policy Authentication policy

Redirect work often adds SPF includes, and each include adds DNS lookups. RFC 7208 caps SPF at 10 lookups. Recheck after every change, and see our guide to fixing SPF too many DNS lookups if you exceed it. If your mail is hosted on Google or Microsoft, the MX values differ by platform, so compare Google Workspace and Microsoft 365 for cold email before you copy records between domains.

Bottom line: The apex A record governs the website. MX and SPF govern email, so they must survive the change.

How do you set up the redirect, step by step?

This tutorial uses a self-hosted nginx server, which scales from one domain to many. A hosted redirect service follows the same logic.

  1. Map the destinations. Decide which main-site URL each path should reach. Preserving paths means a link to /pricing lands on the real pricing page, not the homepage.
  2. Lower the TTL in advance. Set the existing records to 300 seconds at least one old-TTL period before the change, as described above.
  3. Create the A and www CNAME records. Leave MX and TXT untouched. Wait for propagation before the next step.
  4. Install a minimal port-80 server block for both hostnames, then confirm each name resolves to this server. Then issue the certificate. Let's Encrypt's HTTP challenge only succeeds when the names already point at your server, so this order matters.
certbot --nginx -d example-outreach.com -d www.example-outreach.com
  1. Replace the generated block with the redirect. Use $request_uri to keep paths and query strings intact. Place the redirect inside location /, so the /.well-known/acme-challenge/ location that certbot adds still takes precedence on renewal.
server {
    listen 80;
    listen 443 ssl;
    server_name example-outreach.com www.example-outreach.com;

    ssl_certificate     /etc/letsencrypt/live/example-outreach.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example-outreach.com/privkey.pem;

    location / {
        # 302 while the arrangement may change; switch to 301 once it is permanent
        return 302 https://www.yourbrand.com$request_uri;
    }
}
  1. Test DNS and headers using the checks in the next section.
  2. Restore the TTL after the redirect has been stable for 48 hours.

Bottom line: Lower the TTL early, keep MX untouched, issue the certificate after DNS resolves, and preserve the request path.

How do you test the redirect and confirm email still works?

Test four things: DNS resolution, the status code and Location header, the redirect chain length, and the MX records. Run the checks against a public resolver as well as your own, because local caches can hide a change.

dig @8.8.8.8 +short A example-outreach.com
dig +short MX example-outreach.com
curl -I "http://example-outreach.com/pricing?utm_source=test"
curl -sIL -o /dev/null -w "%{num_redirects}\n" "http://example-outreach.com/"

A correct response shows HTTP/1.1 302 Found with Location: https://www.yourbrand.com/pricing?utm_source=test. The chain should be one hop, or two if your main site also forces HTTPS. Compare MX output before and after the change, then send a test message from an outside account to confirm delivery.

Bottom line: The redirect is finished only when the status code, path, one-hop chain and MX records all check out.

Does the redirect affect deliverability?

Not directly. The redirect sits in the web layer. Deliverability depends on authentication, sending behaviour and list quality. SPF, DKIM and DMARC still govern mail, so they matter more than the redirect. Our SPF, DKIM and DMARC setup guide for cold email covers that work, and DMARC none, quarantine and reject explains which policy to choose.

The redirect matters indirectly. A recipient who clicks your domain and finds a certificate warning or a broken page is more likely to report the message. A recipient who lands on a credible page is less likely to. Google's sender guidelines advise keeping the user-reported spam rate below 0.10% and warn against reaching 0.3% or higher. Treat 0.10% as your target and 0.3% as the line you never cross.

A redirect does not reset warmup. A new domain still needs the process in our warmup guide for new cold email domains. Before you pay for warmup services, read whether email warmup actually works, and use an inbox placement test tool to check where mail lands.

Bottom line: The redirect improves how recipients perceive the domain. Authentication and list quality still decide inbox placement.

How do you verify the list you send from these domains?

A redirect changes how your domain looks, but it does not clean the recipient list. Verify the prospect list before the first send from any newly configured domain, because bounces hurt new domains fastest.

If you are comparing options, our guide to the best email verification tools covers the market. This section assumes you have chosen a verifier and want to plan the work. Unlimited Verifier checks syntax, domain, MX records and the SMTP mailbox, flags disposable and role-based addresses, and detects catch-all domains. Each address is sorted into Valid, Risky or Invalid.

Here is a worked example using the Pro plan's stated limits. A team has 62,400 prospect rows across three sending domains.

Here is the process:

  1. Sign up and choose a plan. Free accepts lists of up to 150 emails, which is enough to test the workflow.
  2. Export each prospect list as CSV or Excel, with the email column included. Split files at 25,000 rows on Pro and keep each file under the 10MB upload limit.
  3. Upload and verify a list. The email column is detected automatically.
  4. Review the three buckets. Send to Valid, hold back Risky, and remove Invalid.
  5. Export results as CSV, Excel or JSON. Pro keeps results for 30 days and Free for 24 hours, so save the files now.
  6. Spot-check individual addresses with the free email checker.

For catch-all domains, which accept every address, a Valid result is less certain. The catch-all email verification page explains how to handle them. Unlimited Verifier states 99.5% accuracy for deep verification. That is the company's own figure, not an independent benchmark, so keep tracking bounces after the first send.

Because Unlimited Verifier has no native ESP, CRM or Zapier integrations, most teams use a simple loop: export a CSV, verify it, and re-import the Valid rows. For automation, you can get an API key and call the endpoints from your own scripts.

For broader workflows, see email verification for sales prospecting and email list maintenance best practices. SaaS and ecommerce teams that send from several domains can apply the same routine, as covered in email verification for ecommerce and SaaS. Verification shows an address is deliverable, not that the person agreed to hear from you. The consent side is covered in email verification compliance and hygiene.

Bottom line: Split lists to the 25,000-row cap, verify before the first send from a new domain, and save results before the retention window closes.

What mistakes do people make when redirecting a domain?

Bottom line: Most failures come from editing records you did not mean to touch, or from a redirect that sends the wrong signal.

How we compared (and limitations)

This guide is based on public documentation: RFC 1034, RFC 5321, RFC 7208, RFC 7505, RFC 9110, RFC 5737, Google's Search Central and sender guidance, and Let's Encrypt's documentation. We have not run controlled tests of redirect setups across registrars or mailbox providers. Registrar forwarding behaviour changes, so check your provider's current documentation.

The Unlimited Verifier figures come from its published plan details. The 99.5% accuracy figure is the company's stated number, not an independent benchmark. The worked example uses illustrative volumes, and its arithmetic follows the stated plan limits.

Bottom line: Test your own domains with dig and curl, and treat any vendor accuracy claim as a starting point for your own bounce tracking.

Worked TTL and cutover example

Old A record TTL: 86400 seconds (24 hours). Lower it to 300 seconds at least 24 hours before cutover. Cutover at 10:00 UTC: new record published, worst-case resolver cache clears by about 10:05 UTC for resolvers honoring the 300-second TTL. Old TTL without lowering: worst case about 10:00 UTC the next day. Result: lowering TTL first cuts the worst-case wait from roughly 24 hours to about 5 minutes.

Frequently asked questions

Should I use a 301 or 302 redirect for a secondary domain?

Use a 302 if you might repoint or retire the domain later, because browsers may cache a 301 for a long time. Use a 301 when the redirect is permanent and you want link signals to pass to the main site.

Will redirecting a domain break its email?

It will if you change MX records. A web redirect only needs A or CNAME records for web traffic. Keep MX, SPF and DMARC records as they are so inbound and outbound mail continues to work.

How long does a domain redirect take to work?

The change itself is fast, but DNS propagation depends on the TTL of the old records. Lowering the TTL a day or more before the change shortens the wait, and browsers may keep cached redirects longer.

Do I need an SSL certificate for a redirected domain?

Yes, if you want HTTPS on the redirected domain. Without a valid certificate for that domain, visitors see a browser warning before the redirect fires. Confirm HTTPS works on both the apex and www hostnames.

Does redirecting a domain pass SEO value to my main site?

A permanent redirect from a domain with inbound links generally passes link signals to the destination, according to Google's Search Central guidance. Redirects do not guarantee ranking changes, and content quality still matters.

Can I redirect the bare domain and www to different pages?

You can, but it is usually cleaner to send both to the same destination. Make sure each hostname returns the intended status code and that paths and query strings pass through correctly.

Does a domain redirect affect cold email deliverability?

A web redirect does not change mailbox provider reputation for the sending domain or its IPs. Deliverability depends on authentication, complaint rates and list quality. Redirects matter mainly for how recipients perceive the domain.

How do I check that a domain redirect works?

Use dig to confirm the A or CNAME records resolve to your redirect host, then curl -I to check the status code and Location header. Also test paths, query strings and HTTPS on both the apex and www.

Cut Bounces and Protect Your Sender Reputation With Unlimited Email Verification

Every invalid address you send to hurts your sender reputation and your inbox placement. Verifying your list before each send means fewer bounces, healthier deliverability, and a predictable cost. With Unlimited Verifier, standard verification is unlimited on every plan, with no per-email fees.

Unlimited Verifier checks syntax, domain, MX records and the SMTP mailbox. It also detects catch-all domains and flags disposable and role-based addresses. Export a CSV from your email platform or CRM, upload and verify the list, then re-import the clean results. You can also automate checks with the email verification API.

Free Pro
Price $0 $29/month ($25/month billed annually)
Lists 25 a month, up to 150 emails each Unlimited, up to 25,000 emails each
Deep verifications 750 a month 25,000 a month
API access No Yes (100,000 emails a month)
Result retention 24 hours 30 days

Why teams choose Unlimited Verifier

Unlimited Verifier states 99.5% accuracy for deep verification.

Create a free account and verify your next list before you hit send.

Want to test a single address first? Try the free email checker.