This document describes how to setup a redirect via your cPanel account. The "Redirects" interface allows you to send all of the visitors of a domain or particular page to a different URL.
For example, if create a page with a long URL, use the Redirects interface to add a redirect from a short URL to the long URL. Visitors can enter the short URL to access the content of the long URL.
For more information you may view the cPanel documentation here.
2)Navigate to the "Domains" panel and select "Redirects".
3) On the "Redirects" page you have a few options you may specify when creating your redirect. Once complete click the "Add" button below.
A) Specify the "Type" of redirect you wish to enable as it can either be:
- Permanent (301) — Notifies the visitor’s browser to update its records.
- Temporary (302) — Does not update the visitor’s bookmarks.
B) Specify the "https?://(www.)?" which is the option to specify your specific domain or your may select "* *All Public Domains* *" which will apply the redirect to all your domain listed on this cPanel account.
C) In the box below the "https?://(www.)?" you may specify the the rest of the URL you want to be redirected.
- An example would be if you want a specific page such as "http://example.com/content/about.html" to be redirected enter in "content/about.html".
- You may also leave the box blank if you wish to redirect your main domain. An example of this would be "http://example.com" would be what a blank box represents.
D) Specify the where you would like to "Redirect to" by entering the URL following the format "http://www.test.com".
E) Select what situation you want your "redirect:" to apply:
- Only redirect with www. — This option only redirects when www is specified in the URL.
- Redirect with or without www. — This option redirects for both when a www record is present and when it is not.
- Do Not Redirect www. — This option does not redirect users who enter the
F) Select the "Wild Card Redirect" option if you wish to redirect all files in a specific directory to the same file name in a different directory.
- For example, if you enable the "Wild Card Redirect" option and
test.com, then a visitor who tries to access the
http://example.com/img.jpgURL will redirect to the
4) Once you are done adding your redirect's they will be listed at the bottom of the page and you may remove redirects by clicking "Delete" link at the end of the redirect's line.