fbpx

Tech-Stuff

How to set up domain redirection using Hostgator CPanel

How to set up domain redirection using (Hostgator) cpanel 

Redirects allow you to redirect a specific webpage to another webpage and display the contents of that second page.

Why Redirect A Website Or Web page?
Website Redirect
For example, I want to use my name as my business website “andrewmclachlan.co” in an email signature & not my website URL

Webpage Redirect
You can use this method to make a page that has a long URL accessible through a page with a shorter and easier-to-remember URL…

In this example, I want to redirect from my new domain to a specific webpage
andrewmclachlan.co/ to
marketingwizards.ca/machine-gun-persuasion/

Two types of redirect you can choose between a
Permanent (301) redirection
– A permanent redirect will notify the visitor’s browser to update any bookmarks that are linked to the page that is being redirected.
Temporary (302) redirection
– Temporary redirects will not update the visitor’s bookmarks.

How to redirect a domain with HostGator

This tutorial will show you how to create a URL redirect in cpanel.

This will redirect a visitor to your website from a source URL to a Target URL

Step-by-Step Tutorial

1. Log on to HostGator cpanel
2. Scroll down to that domains section and click that redirects icon
3. Choose whether you want that redirect to be temporary or permanent

Note a permanent redirect is used to communicate to browsers and search engines precisely that the redirect is permanent. Browsers will cash the website or webpage on the search engine spiders will follow a permanent redirect

But a temporary redirect will remain in place until you disable it. This type of redirect is used in case you want to eventually use the original URL again. Browsers will not cache a temporary redirect

4. Enter the URL from which the visitor will be redirected from that drop down menu

5. Enter the target for the redirect as a full URL, including the protocol HTTP://…

6. Select one of the following www redirection options to dictate whether or not the domain will be redirecting:

  • Only redirect with www. only redirects visitors that type www. as part of the URL.
  • Redirect with or without www. redirects all visitors regardless of if they use www. or not.
  • Do Not Redirect www. will not redirect visitors that use www. as part of the URL.

7. Clicking the wildcard redirect option allows users to set up a redirect to the same file on a new destination example with wild-card redirection website.com about will redirect to website destination.com about

8. Click the add button

Congratulations! You know now how to create a URL redirect

9. Test that the redirection works