A function called "domain redirects" is available from most cPanel-based web hosting companies. You can point any domain to any other domain using this function (or a non-www version of a website to the www version and vice versa).
I'll show you how to use the HostGator Domain Redirect function to do a 301 (permanent) redirection of any domain from the HostGator cPanel in this tutorial.
If you're unfamiliar with HostGator, I recommend reading ShoutMeLoud's HostGator analysis.
HostGator Domain Redirect Using cPanel
If you can't use the. htaccess file to create a 301 redirect, you can do so directly from your hosting control panel.
You can redirect any domain to any other domain using the hosting control panel. If you own the.org version of your.com name, for example, you can point the.org domain to the.com website (or vice versa). Perhaps you'd like to change your website's domain name. So that you don't miss any traffic, you should redirect the old domain to the new domain.
Alternatively, you can point to a non-www. domain to the www. edition.
Here's a quick and easy tutorial on how to use the HostGator cPanel to redirect a domain.
Just so you know, HostGator will soon be releasing the HostGator domain registrar, which will enable you to manage domain redirections using HostGator's new cPanel.
Warning: This approach can only be used if your chosen domain begins with "www." If your chosen domain is a naked domain, this will result in an endless loop, in which your domain will alternate between “www.” and naked.
Fill in the redirect information now.
- Choose "Permanent (301)" as the "Kind" choice.
- Choose the domain to which you want to redirect.
- Enter the domain name with "www." in the "redirects to" box.
- Select "Do Not Redirect www." as the redirect form.
- Then click the "Add" button.
👉 Also, you can read:Web Hosting Secrets: Inodes
Redirecting A HostGator Domain To Any Other Domain
- Choose the sort of redirection you like. (The majority of cases are classified as "Permanent (301)").
- Choose the domain that will be redirected.
- Enter the domain you want to redirect your domain to in the "redirects to" area.
- Select “Redirect with or without www.” from the drop-down menu.
Redirection Using .htaccess file: HostGator
The best approach for providing redirections is to use the. htaccess file, but this involves advanced editing and technical knowledge. Note that the methods mentioned above will suffice.
Changing a non-www domain to a www domain.
Using notepad, edit yours.htaccess file and add the following line:
- http://www.yourdomain.com/ http://www.yourdomain.com/ http://www.yourdomain.com/
- http://www.yourdomain.com
Any web page can be redirected to any URL.
- 301 redirect /example.html http://www.redirecteddomain.com/new.htm http://www.redirecteddomain.com/new.htm
Non-“www.” domains should either be redirected to “www.” or vice versa, depending on the settings.
Please contact us if you have any questions about this HostGator domain redirection guide. You can get help from HostGator via live chat at any time.
No comments:
Post a Comment