Forward a domain to another website
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
- The domain you want to forward must point to Barbrick and be added to your account. Add it as an alias or addon domain. See Addon domains, aliases, and subdomains compared.
- Decide whether the forward is permanent or temporary.
| 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
- Sign in at
https://barbrick.ca/account. - Go to Account → Hosting → your site → Websites and find Redirects.
- Select Add redirect.
- For Kind, choose Permanent (301).
- For Domain, select the domain to forward.
- Leave From path blank to forward the whole domain.
- For To, enter the full destination, such as
https://example.ca/. - For Applies to, choose With or without www.
- If you want the path to carry over, tick Also redirect everything under this path to the same place.
northshorebakery.com/menugoes tohttps://example.ca/menu. - Select Add redirect.
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
wwwrules. 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.
Still stuck? Ask us and we'll walk you through it.
