Domain Forwarding: Send One Domain to Another the Right Way
Domain forwarding sends visitors who type one domain to a different web address. Your registrar or DNS host answers the request with an HTTP redirect, ideally a 301 for a permanent move. Avoid masked forwarding, which wraps the target site in a frame, and make sure the forwarding service can serve HTTPS for the old domain.
| Option | Address bar shows | Good for |
|---|---|---|
| 301 forward | The destination | Extra domains, typo domains, a permanent rebrand |
| 302 forward | The destination | A short campaign or a temporary move |
| Masked forward (frame) | The old domain | Rarely a good idea |
| DNS record (A or CNAME) | The domain typed | Serving the same site on the domain itself, not forwarding |
Updated
Business owners forward domains for simple reasons: a spelling variant, an old brand name, a country domain or a campaign name that should land on the main site. Forwarding is a redirect, an instruction that tells the browser to go to another address, and the type you choose decides what search engines remember. Use the planner below to pick the right type and get the server rules if you would rather set it up on your own host.
Forwarding planner
Fill in the two addresses. The rules update as you type; nothing is sent anywhere.
- Domain to forward
- Destination address
- Kind of move
- Keep the path (old.com/menu goes to new.com/menu)
Redirect status codes
| Code | Kind | Method kept? |
|---|---|---|
| 301 Moved Permanently | Permanent | May change to GET |
| 308 Permanent Redirect | Permanent | Yes |
| 302 Found | Temporary | May change to GET |
| 307 Temporary Redirect | Temporary | Yes |
Forwarding rules you can copy
Nginx: forward a whole domain, keeping paths
The $request_uri variable carries the path and query string across, so deep links still land correctly.
server {
listen 80;
listen 443 ssl;
server_name old-example.com www.old-example.com;
# ssl_certificate lines for old-example.com go here
return 301 https://www.example.com$request_uri;
}Apache: the same forward in a virtual host
Redirect permanent sends a 301, and Apache appends the rest of the path to the target.
<VirtualHost *:80>
ServerName old-example.com
Redirect permanent / https://www.example.com/
</VirtualHost>Plain HTML fallback when you only have static hosting
An instant meta refresh is treated by Google like a permanent redirect. A server redirect is still better.
<!doctype html>
<meta http-equiv="refresh" content="0; url=https://www.example.com/">
<link rel="canonical" href="https://www.example.com/">
<a href="https://www.example.com/">Continue to example.com</a>
What the four redirect codes mean
MDN groups them simply: 301 and 308 are permanent, 302 and 307 are temporary. The difference within each pair is that 301 and 302 may let the browser turn a form POST into a GET, while 307 and 308 keep the original method and body.
For forwarding a whole domain, where visitors arrive by typing or clicking links, 301 is the usual choice.
Forward at the registrar or on your own server?
Registrar forwarding is the quickest route for a spare domain with no hosting. Your own server or CDN gives you control over paths, HTTPS certificates and caching, and makes the rule easy to read later.
Either way, the old domain needs DNS that points at whatever is doing the redirecting, or no request ever reaches it.
How it works
- Enter the domain you want to forward and the address it should go to.
- Choose whether the move is permanent or temporary, and whether paths like /menu should carry over.
- The planner shows what a visitor sees and writes matching rules for Nginx, Apache and a plain HTML fallback.
- In your registrar's forwarding screen, enter the same destination and type, or paste the rules into your own server.
Tips
- Pick 301 for anything you do not plan to undo. Search engines only treat permanent redirects as a sign the destination is the main address.
- Keep paths when the old domain had real pages, so old links and bookmarks land on the matching page instead of the home page.
- Test both http:// and https:// on the old domain. Forwarding that only works on http breaks for most visitors today.
- Remove conflicting A, CNAME or ALIAS records on the forwarded name, which some registrars warn can interfere with forwarding.
- Check the result with a redirect checker: one hop to the final address is the goal, not a chain.
Frequently asked questions
What is the difference between a 301 and a 302 forward?
A 301 says the move is permanent and a 302 says it is temporary. Google's guidance says it uses a permanent redirect as a signal that the target should be the canonical address, and does not do so for a temporary one.
Why is masked forwarding a bad idea?
Masking keeps the old domain in the address bar by loading the real site inside a frame. Many sites send a frame-ancestors rule that refuses framing, so visitors see a blank page; deep links and page titles also stop working as people expect.
Does domain forwarding work with HTTPS?
Only if the forwarding service holds a valid certificate for the old domain. Registrar help pages differ here: Namecheap, for example, says an HTTPS to HTTPS redirect between domains needs active SSL certificates on both. Without one, visitors typing https:// see a security warning before any redirect happens.
Is forwarding the same as pointing DNS?
No. Pointing DNS with an A or CNAME record serves a site on the domain itself, and the address bar keeps that domain. Forwarding sends the browser elsewhere with a redirect, so the address bar changes to the destination.
How long does forwarding take to start working?
It depends on the provider and on DNS caches. Namecheap's help says its redirects usually start working in about 30 minutes; other registrars publish their own estimates.
Related: Redirect checker, Fix too many redirects, www vs non-www, Add a custom domain, Domain extensions compared.
Build your site free or see all free tools. On We.Inc you can build your site free, with no card and no trial needed to start. AI building is on paid plans from $19 a month.
More in Guides
- Domain Management for Agencies: Ownership, Access and Renewals Without the 2 a.m. Outage | How-to Guide
- Domain vs Hosting: What Is a Domain Name and How Is It Different? | How-to Guide
- Double Opt-In: The Confirm-Your-Email Step
- Duplicate Without User-Selected Canonical (and Alternate Page With Proper Canonical Tag)
- Embed Google Forms, Calendly and Typeform on Your Website
- How to Embed a Google Map on Your Website
- Emergency Alerts on Government Websites: Banners, Pages and a Playbook for the Worst Day | How-to Guide
- Empty State Examples
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App