URL Redirect

You have a redirect tool in cPanel, which main function is redirection of your website's visitors from a source URL to a target URL.

Warning: It’s not allowed to redirect from domain.com to www.domain.com or from domain.com to domain.com/index.something, because it will cause an infinite loop. If you wish to control the www and index page, you always must use mod_rewrite by adding .htaccess code.

How to Set Up a Redirect

1. Log into cPanel.

2. Choose the Redirects icon (it’s located under Domains).

3. The Type drop-down menu has two types for redirect:

3.1) Permanent 301 redirects users or search engines to a new site.
3.2) Temporary 302 redirects users or search engines, but don’t update the bookmark and it continues to index only the original page.

4. Select the "http://(www.)" drop-down menu and choose the domain name that will be redirected. If you redirect a single page or directory, other option is usage of the adjacent text field, where will enter the name of the folder or the file.

5. In the "redirects to" field, write the full URL of the page

Note: It’s necessary to type the protocol (e.g. http://, https:// or ftp://) before the domain URL and then it would be accepted.

6. You have to choose between the following three www redirection options:

6.1) Only redirect with www. – it only redirects visitors that write www. as part of the URL.
6.2) Redirect with or without www. – it will redirect all visitors no matter they use www. or not.
6.3) Do Not Redirect www. – it won’t redirect visitors that type www. as part of the URL.

7. Another option is the Wild Card Redirect, by which users set up a redirect to the same file on a new destination, described below:

7.1) With Wild Card Redirect, www.example.com/about.html will redirect to www.example-destination.com/about.html
7.2) Without Wild Card Redirect, www.example.com/about.html will redirect to www.example-destination.com

8. Finally, select Add in order to create the redirect as specified.

As a result when visitors write the URL, which you have already specified, they will be redirected to the site, created by you.


Was this article helpful?

mood_bad Dislike 0
mood Like 2
visibility Views: 1695