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)

  1. Log in to your SiteGround Site Tools.
  2. Go to Site Tools > Domain > Redirects.
  3. 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 www or all variants.
  4. 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:

  1. Go to SiteGround Client Area > Websites > Select your domain.
  2. Navigate to Domain > DNS Zone Editor.
  3. 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:

  1. Go to Site Tools > Site > File Manager.
  2. Open the .htaccess file in the root folder of the domain (usually public_html).
  3. 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.

Previous Post Next Post

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish