The short answer

For a permanent move, the safe choice is a server-side 301 redirect (308 is the other permanent code and works the same way for this purpose). Send each old address to the closest matching new page, where one exists, not every page to the home page.

Masked or frame forwarding keeps the old name in the address bar and sends no redirect, so search engines get no redirect signal. Keep the redirects in place for at least a year, and longer if the old domain still has links or traffic.

Forwarding, redirects and DNS

Domain forwarding is the general idea of sending visitors from one domain to another. A URL redirect is more precise: it sends one address to another address. Some registrars call this URL forwarding. In both cases, the redirect has to be answered by a web server. DNS only points a name at a server; a CNAME or A record on its own does not redirect anyone.

That distinction matters when you redirect a domain to another domain. Your registrar may run a forwarding server for you, or your host may add the rule on the server that answers the request. Either way, the browser has to receive a redirect response before it can land on the new site.

Web forwarding is not email forwarding. Mail on the old domain follows its own MX records, so check how email is handled before you change DNS. If email is part of the move, read our guide to email forwarding versus a mailbox first.

Choose the right redirect type

Google documents how its search treats each type; the middle column gives that treatment, except for masked forwarding, which Google’s page does not cover.

TypeWhat it tells browsers and search enginesUse it for
301 Moved PermanentlyA permanent move. Google uses a 301 as a signal that the target should be the canonical address and recommends a permanent server-side redirect whenever possible.Permanent changes where you will not revert.
308 Permanent RedirectA permanent redirect. Google treats it the same way as a 301.Permanent changes where your server or platform uses 308.
302 Found / 307 Temporary RedirectGoogle follows these, but they are not a canonical signal, so the old address can stay in results.Temporary changes you plan to reverse.
Masked or frame forwardingShows the other site in a frame under the old address; no redirect status is sent.Avoid for a permanent move.
Meta refreshAn instant meta refresh is treated as permanent; a delayed one as temporary.A fallback when server-side redirects are not possible.
JavaScript redirectUse only when server-side and meta refresh are not possible, because rendering can fail.A last resort, not the normal way to redirect a website to another URL.

Source: Redirects and Google Search

When forwarding a domain makes sense

Forwarding makes sense when you rebrand to a new name, merge two sites, move from http to https, or point extra extensions and common misspellings you registered at your main site.

Forwarding extra domains is about people, not rankings: someone who types the old name or a misspelling still reaches your site, and while you hold the registration nobody else can register that name.

How to set up a 301 redirect

You can set up a 301 redirect in more than one place. Pick the one that gives you control over the whole old address, including deep links.

At your registrar

Look for the domain forwarding setting. Choose permanent or 301, enter the destination, and turn on path forwarding if it is offered so deep links keep their page. Check whether the setting covers https and both www and the bare domain. Settings and defaults differ between registrars, so read your registrar’s help page. Afterwards, check the result yourself (see Test the redirect): the status code, the destination, a deep link and the https address.

In your hosting panel

If your hosting panel has a redirects section, it can write the rule for you. Add the old address and the new address, choose permanent, and confirm that the panel is applying the redirect to the domain you expect.

In your web server’s configuration

The example below uses example.com as the old domain and example.net as the new domain. It is only an example; use your own names.

Apache, inside the old domain’s virtual host:

Redirect permanent / https://www.example.net/

nginx:

server {
    listen 80;
    listen 443 ssl;
    server_name example.com www.example.com;
    ssl_certificate     /path/to/example.com/fullchain.pem;
    ssl_certificate_key /path/to/example.com/privkey.pem;
    return 301 https://www.example.net$request_uri;
}

Both examples keep the rest of the path, and the nginx one keeps the query string too. The old names still need a valid certificate, because a browser that asks for https://example.com checks it before the server can send the redirect.

Source: Redirects and Google Search

Moving a whole site to a new domain

A whole-site move needs more than one redirect rule. Like a business moving to new premises, you decide where every item goes before the old place is closed.

A café on moving day with stacked chairs, colour-dotted boxes and a removal van outside.
Mark where every old page goes, like every box, before the old domain stops serving the site.

A worked example (invented names): https://example.com/services/plumbing?ref=card should land on https://www.example.net/services/plumbing?ref=card. If the new site renamed that page to /what-we-do/plumbing, a blanket rule sends visitors to a missing page, so that address needs its own mapping.

Work through these steps in order.

  1. List old addresses from your sitemaps, analytics, and content system, then map each one to its new address.
  2. Redirect each old address to its own new address with a permanent server-side redirect. Where no matching page exists, choose the most relevant page rather than the home page by default.
  3. Point straight to the final address and avoid chains. Google says ideally no more than 3 hops, and fewer than 5.
  4. Submit a sitemap of the new addresses.
  5. For a move between domains, use the Change of Address tool in Google Search Console.
  6. Update your own links first, then ask others to update theirs and change your ads.
  7. Watch indexing and traffic as the new addresses replace the old ones.

Google says most pages of a small or medium site can take a few weeks to move, and larger sites take longer. Keep the redirects as long as possible, generally at least one year.

Keep the old domain registered and renewing. If you lose control of the old domain, the redirects eventually stop working.

Source: Site moves with URL changes

If you are moving a website, the GridOnBoard migration guide lists what to record first: domain ownership, hosting, databases and backups.

Test the redirect

Check that the old address answers with a 301 or 308 and the right destination. Use a redirect checker or your browser’s developer tools on the Network tab. Test http and https, with and without www, and a deep page as well as the home page. For example, a request to https://example.com/services/plumbing should come back with status 301 and a Location header of https://www.example.net/services/plumbing.

Ideally there is one hop, not a chain. Clear the browser cache before re-testing, because browsers remember permanent redirects. If the change was in DNS, remember that cached DNS answers can last until their TTL runs out.

Checklist

  • Choose one main address for the site.
  • List every old URL that needs a new home.
  • Use a permanent 301 or 308 server-side redirect.
  • Turn on path forwarding if your registrar offers it.
  • Cover http, https, www and the bare domain.
  • Send each old page to its matching new page, or the most relevant one.
  • Remove redirect chains and extra hops.
  • Submit a sitemap of the new addresses.
  • Test with a redirect checker and the Network tab.
  • Keep the old domain registered and renewing.

Common questions

Does domain forwarding hurt SEO?

A permanent server-side redirect to the matching page is the method Google recommends for a move (source, source). Rankings can still shift while search engines process the move; masked or temporary forwarding for a permanent move, or sending every page to the home page, makes it harder.

How long does a domain redirect take to work?

The redirect works as soon as the server answers with it. If you changed DNS to reach that server, cached answers can last until their TTL runs out. Search engines take longer: Google says most pages of a small or medium site can take a few weeks to move (source).

How long should I keep the redirect?

Google’s site-move guidance says as long as possible, generally at least one year (source).

Can several domains point to one site?

Yes. Choose one main address and forward each of the other domains to it with a 301.

Is domain forwarding free?

It depends on where the domain is registered or hosted; check your registrar’s or host’s terms before relying on it.

Sources

  1. Redirects and Google Search — Google Search Central. Reviewed .
  2. Site moves with URL changes — Google Search Central. Reviewed .