How to create a site/domain redirect in cPanel?

You can create the redirect for your domain in your cPanel. In order to do it, perform the following actions:

1.Log in to your cPanel.
2.Navigate to the Domains section and click on Redirects option

3.Choose the type of redirect you would like to use for your domain:

  • Permanent (301) – this redirect will update the visitors bookmarks and direct search engines to the new site.
  • Temporary (302) – it 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

NOTE: 301 redirects are permanent. They mean that the page has moved, and they request any search engine or user agent coming to the page to update the URL in their database. This is the most common type of redirect that people should use. If you set up 302 redirects, Google and other sites that determine popularity ratings assume that the link is eventually going to be removed. After all, it's a temporary redirect. So the new page doesn't have any of the link popularity associated with the old page. It has to generate that popularity on its own.

4. From a drop-down menu choose the domain name you would like to redirect

If you want to redirect a single page or directory, you can use the text field following the drop-down menu and enter the name of the folder or file.

5.Enter the full URL of the page your domain will be redirecting to in the Redirects to field.

6.Select if you want your domain to redirect with www. or not:

  • Only redirect with www.: the redirect will work if only visitors are using www. as a part of the URL.
  • Redirect with or without www.: the redirect will work regardless of using www. as a part of URL or not. 
  • Do Not Redirect www.: the redirect will not work if visitors are using www. as a part of URL.

7.Check-mark Wild Card Redirect if you would like all files in the current directory to be redirected to the same files names in the new directory.:

Example:
 if example.com redirects to example-test.com then:

  • with Wild Card Redirect - example.com/test/ redirects to example-test.com/test/
  • without Wild Card Redirect - example.com/test/ redirects to example-test.com

  • Click on Add button in order to create the redirect.


     This is it!
  • 52 Users Found This Useful
Was this answer helpful?

Related Articles

How to Backup your cPanel account from your previous server?

Here we are explaining about how to move your cpanel to our server. This is a very simple...

How to use cPanel?

cPanel is a world popular hosting control panel. It make easy to manage your hosting account. You...

Accessing cPanel from a dynamic IP address

If you get logged out from cPanel and get an error The IP has changed, then it is possible that...

How can I check my website access logs?

Using Raw Access Logs menu in cPanel you can check the traffic coming to your website, before it...

How do I add an Apache handler?

1. Click on the “Apache handlers” link in Cpanel. (under the 'site management header.)2. Enter...