how to have a domain forward to another website siteground
To set up domain forwarding on SiteGround (so that one domain redirects to another website), follow these steps:
✅ Method 1: Use SiteGround’s Redirect Tool (Recommended for simple redirection)
- Log in to your SiteGround Site Tools.
- Go to Site Tools > Domain > Redirects.
- Under Create New Redirect:
- Type: Choose
Permanent (301)for SEO-friendly forwarding. - Domain: Select the domain you want to forward.
- Path: Leave it blank if you want the whole domain to redirect.
- Redirects to: Enter the full URL you want it to forward to (e.g.,
https://example.com). - www Redirection: Choose whether to redirect with or without
wwwor all variants.
- Type: Choose
- Click Create.
This creates a server-side redirect at the Apache level using .htaccess.
✅ Method 2: Forwarding via DNS (Only for external destinations)
If the domain is not hosted on SiteGround (just registered), and you don’t want to host a site on it:
- Go to SiteGround Client Area > Websites > Select your domain.
- Navigate to Domain > DNS Zone Editor.
- Set a CNAME or A record pointing to the new domain or IP. ⚠️ This works only if the destination server accepts domain aliases. If not, use Method 1.
🛠 Alternative: Manual .htaccess Redirect (Advanced)
If you want to customize further:
- Go to Site Tools > Site > File Manager.
- Open the
.htaccessfile in the root folder of the domain (usuallypublic_html). - Add the following code at the top:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com [NC]
RewriteRule ^(.*)$ https://newdomain.com/$1 [L,R=301]
Replace olddomain.com and newdomain.com with your actual domains.