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.
1) Login to cPanel from exacthosting.com or login to your cPanel by going to yourdomain.tld/cpanel.
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
www prefix.
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
example.com
redirects totest.com
, then a visitor who tries to access thehttp://example.com/img.jpg
URL will redirect to thehttp://test.com/img.jpg
URL.
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.