HostGator Web Hosting Help

Redirecting Web Page

Summary

This tutorial will how you how to use the Redirects tool which will allow you to redirect your domain names. This can be useful if you need to temporarily take a website down or direct visitors to a new website location.

Navigate to the Redirects page

  1. Login to your HostGator cPanel account.
  2. Click the Domains tab, near the top of the page.
  3. Click the redirect sub-tab.

301 or 302 Redirect

From the add redirect menu, you will need to choose which type of redirect to use.

  • Permanent 301: A 301 redirect will update the visitors bookmarks and direct search engines to the new site.
  • Temporary 302: A 302 redirect will redirect the visitor or search engine, but will not update the bookmark and the search engine will continue to index to the original page.

Url to Redirect

  1. Choose your domain name you would like to redirect, using the drop-down menu.
  2. If you would like to redirect a single page or directory; you can use the text field following the drop-down menu to enter the name of the folder or file.

Destination URL

Enter the full URL of the page you will be redirecting to in the "redirects to ->" text field.
Note: You need to enter the protocol as well, e.g. http://, https:// or ftp://

WWW Redirect options

Select if you will be redirecting www. or not.

  • "Only redirect with www."This option will only redirect visitors that use www. as part of the URL
  • "Redirect with or without www."This option will redirect all visitors.
  • "Do Not Redirect www."This option will not redirect visitors that use www. as part of the URL

Wild Card Redirect

  1. Click the "Wild Card Redirect' if you would like to redirect to the same file on the new destination.
    Example: www.example.com redirects to www.example-destination.com
    • With "Wild Card Redirect": www.example.com/about.html will redirect to www.example-destination.com/about.html
    • Without "Wild Card Redirect": www.example.com/about.html will redirect to www.example-destination.com

  2. Click the "Add" button to create the redirect.


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How do I create a redirect?
Knowledgebase Article 655,632 views tags: htaccess redirect redirects

How do I redirect users to another page using PHP?
Knowledgebase Article 933,603 views tags: header location php redirect redirects

The redirection of www.yourdomain.com/default.html or index.html to http://www.yourdomain.com/index.php?act=whatever redirects it to http://www.yourdomain.com/index.php%3fact=whatever In other words,
Knowledgebase Article 1,035,599 views tags: htaccess messing mod php redirect redirects rewrite variable variables

Related Help Content

If suddenly when you go to your page, you get nothing on the page. You can still get HTML to display, just not PHP. To serve HTML pages to browsers, we don't associate the Apache processes with your 2
Knowledgebase Article 190,432 views tags: blank page php

I would like to view the statistics for my website.
Knowledgebase Article 361,508 views tags: addon domain enable hits set setup statistics stats subdomain visitors web

This article will show a way to protect specific pages of your website with SSL. This may have benefits for SEO and can be used on pages that contain forms, shopping carts or any other page where users might enter sensitive information.
Knowledgebase Article 121,139 views tags: htaccess pages specific ssl

How do I make a sub directory (or sub folder) act as the public_html for your main domain?
Knowledgebase Article 1,097,203 views tags: Drupal domain htaccess joomla wordpress

How do I perform a URL redirect/rewrite using the .htaccess file?
Knowledgebase Article 1,935,869 views tags: htaccess redirect rewrite url

As the registrar, we will assist in the following domain dispute, providing the specific criteria is met. The domain has been moved without the domain owner's consent by means of the password or EPP c
Knowledgebase Article 375,527 views tags: dispute domain epp icann moved owners ownership permission policy proof

This article will explain how to access and use the Web Disk and cPanel as well as explain variations for different operating systems.
Knowledgebase Article 196,446 views tags: cpanel webdav webdisk

Learn how the Cron Job tool can help you automate the scripts on your web site.
Video "How-to" Tutorial 347,897 views tags: cpanelutilities cron