All posts

Blog

Domain Forwarding vs Domain Masking: What They Do and When to Use Each

Illustrated cover for the Domains & DNS guide "Domain Forwarding vs Domain Masking: What They Do and When to Use Each"

Say you own a short, catchy domain you printed on a flyer, an old domain from a previous business name, or a handful of misspellings of your main address. You don't want separate websites for all of them. You just want anyone who types them in to end up at your real site.

That's what domain forwarding is for. Many registrars also offer a related option called domain masking (sometimes called "forwarding with masking" or "stealth forwarding"). They sound similar, but they behave very differently, and choosing the wrong one can cause SEO, security and usability problems. This guide explains both in plain English.

What is domain forwarding?

Domain forwarding (also called URL forwarding or URL redirection) automatically sends visitors from one domain to another web address. When someone types oldbrand.com, their browser is told to go to newbrand.com instead, and the address bar updates to show the new address.

Behind the scenes, forwarding is an HTTP redirect. The server responding for the first domain replies with a status code that says, in effect, "this content lives over there now." The two codes you'll see most are:

  • 301 (permanent): The move is permanent. Search engines generally transfer the old address's ranking signals to the new one over time. Use this for old brand names, spare domains and permanent moves.
  • 302 (temporary): The move is temporary, such as a seasonal campaign. Search engines tend to keep the original address in their index.

If you want a deeper look at redirect types and SEO, read our guide to 301 redirects and SEO.

What is domain masking?

Domain masking also shows visitors the content of another site, but it keeps the original domain in the address bar. Visitors type promo-domain.com, see your main website's content, and the address bar still says promo-domain.com.

Most registrars implement masking with an HTML frame. The forwarding service serves a nearly empty page on the masked domain, and that page loads your real website inside a full-screen frame. Visitors are really looking at your main site through a window.

Why masking usually causes problems

Masking sounds appealing because the "pretty" domain stays visible, but the frame-based approach has real drawbacks.

Many sites refuse to be framed

To protect against clickjacking, many websites send security headers such as X-Frame-Options or a Content Security Policy frame-ancestors rule that tell browsers not to display them inside frames on other domains. Popular platforms often enable these by default. If your destination site does this, the masked domain will show a blank page or an error.

SEO suffers

Search engines see the masked domain as a page with almost no content of its own, just a frame pointing somewhere else. The masked domain is unlikely to rank, and it can create confusion about which address is the real one. Meanwhile, the destination site doesn't gain any benefit from the masked domain the way it would from a 301 redirect.

The address bar never changes

As visitors click around inside the frame, the address bar keeps showing the same masked domain. People can't bookmark or share specific pages, and the back button can behave unpredictably.

HTTPS and mixed content headaches

If the masked domain isn't served over HTTPS, browsers may warn visitors or refuse to load a secure site inside an insecure frame. Even when HTTPS is available, you are depending on the forwarding service's setup rather than your own.

Logins and forms can break

Some browsers restrict cookies inside frames from a different domain. Shopping carts, logins and some forms may stop working correctly when viewed through a masked domain.

For these reasons, masking is rarely the right choice for a business website.

When to use domain forwarding

Forwarding with a 301 redirect is the clean, standard solution in most cases:

For a temporary campaign that points to a specific landing page, a 302 might make sense, but 301 is the usual default.

If you really want the other domain in the address bar

Sometimes you genuinely want a second domain to display your site under its own name. Instead of masking, consider these options:

  • Make it the primary domain. If you prefer the other domain, make it your site's main address and redirect the old one to it.
  • Use an alias (parked domain) on your hosting. Many hosting control panels let you point a second domain at the same website files. Be aware that serving identical content on two domains can cause duplicate content issues, so you'll usually want canonical tags or a redirect anyway. Our guide on addon domains vs parked domains explains the difference.
  • Build a separate site. If the second domain deserves its own audience, give it its own content.

How to set up domain forwarding

There are two common ways to forward a domain.

Option 1: At your registrar

Most domain registrars have a forwarding or redirect feature in the domain's settings.

  1. Log in to your registrar and open the domain you want to forward.
  2. Find the forwarding or redirect option.
  3. Enter the destination URL, including https://.
  4. Choose a permanent (301) redirect and make sure masking is turned off.
  5. Decide whether to forward only the bare domain or also www, and whether to keep the path (so old.com/pricing goes to new.com/pricing) if the option is available.
  6. Save, then allow time for DNS changes to take effect.

Registrar forwarding usually works by pointing the domain's DNS to the registrar's redirect servers. Check whether their service supports HTTPS for the forwarded domain; if it doesn't, visitors who type https:// may see a certificate warning.

Option 2: On your web hosting

If the domain is pointed at your hosting account, you can create the redirect there instead.

  • In cPanel or DirectAdmin, add the domain and use the built-in Redirects tool to create a permanent redirect.
  • Or add a rule to the domain's .htaccess file on Apache or LiteSpeed servers. A basic example:
RewriteEngine On
RewriteRule ^(.*)$ https://www.newbrand.com/$1 [R=301,L]

Hosting the redirect yourself lets you install a free SSL certificate for the forwarded domain, so https:// versions redirect cleanly without warnings.

How to test your forwarding

After setting it up, check that:

  1. Typing the old domain lands you on the new one, and the address bar updates.
  2. Both http:// and https://, and both www and non-www, work.
  3. The redirect returns a 301 status. Free online redirect checkers and browser developer tools (Network tab) will show the status code.
  4. Paths are preserved if you need them to be.
  5. There are no redirect loops or long chains of multiple redirects.

If changes don't appear right away, the delay may be DNS caching. See what is DNS propagation? for why.

Wrapping up

Domain forwarding and domain masking both send visitors from one domain to another, but only forwarding does it in a way browsers, search engines and visitors handle cleanly. Use a 301 redirect for spare domains, old brands and misspellings, preferably with HTTPS support. Avoid frame-based masking unless you have a very specific, low-stakes reason. If you want a different domain to appear in the address bar, make it your primary domain rather than hiding the switch.