Forward a domain to another website

redirect, forwarding, 301, domain · 0 found this helpful

Domain forwarding sends everyone who visits one domain to another web address. Use it when you own a spare domain, such as northshorebakery.com, and want it to land on https://example.ca.

Before you start

Type Code Use it for
Permanent 301 A name you will always send to the main site. Search engines transfer ranking.
Temporary 302 A short-term redirect, such as during a refresh

Forward in your Barbrick account

  1. Sign in at https://barbrick.ca/account.
  2. Go to Account → Hosting → your site → Websites and find Redirects.
  3. Select Add redirect.
  4. For Kind, choose Permanent (301).
  5. For Domain, select the domain to forward.
  6. Leave From path blank to forward the whole domain.
  7. For To, enter the full destination, such as https://example.ca/.
  8. For Applies to, choose With or without www.
  9. If you want the path to carry over, tick Also redirect everything under this path to the same place. northshorebakery.com/menu goes to https://example.ca/menu.
  10. Select Add redirect.
Redirects in Websites

Test in a private window. The change is immediate for new visits, but browsers cache 301 redirects. Use a fresh window.

What the rule looks like

We write a rule like this to .htaccess in the forwarded domain's folder.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?northshorebakery\.com$
RewriteRule ^/?(.*)$ "https\:\/\/example\.ca\/$1" [R=301,L]

HTTPS on the forwarded domain

A visitor who types https://northshorebakery.com needs a valid certificate on that name, or sees a warning before the redirect. We issue a free certificate once the domain points here. See Free SSL with AutoSSL.

If something goes wrong

  • Redirect loop. The destination redirects back. Check www rules. See www or no www.
  • Domain not reaching Barbrick. Fix DNS first. See Point your domain to Barbrick.
  • Registrar offers forwarding too. You can use theirs, but HTTPS often fails. We recommend doing it here.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.