Redirects

What is a Redirect?

Adding a Redirect

Removing a Redirect

 

 


What is a Redirect?


Creating redirects allows you to send all of the visitors of a site or particular folder or page on your site to a different URL. So for example, you can send all users visiting domain1.com to domain2.com or even users trying to visit domain1.com/example.html to a different site or specific page on any site.


Please note, one of the first things you will be asked when creating any redirect is if you wish to create a 301 Permanent or a 302 Temporary redirect. In most cases, you will likely want a 301 which will be created in such a way that visitor’s browsers and various search engines will process and remember the detail from the redirect. This is more efficient and will result in less impact on your search engine results. If you have questions about this or need more detail about the difference, please let us know!


Also note that if you are trying to create a redirect for a domain or directory that has WordPress or other third party software installed, there may be conflicts between the resulting .htaccess files.


And finally, once your redirect is created, there is no way to edit or alter it. If you need to make a change to correct an error or adjust the function, you need to remove the redirect and recreate it.


If your redirects are not working as you expect them to, let us know!

 




Adding a Redirect



To add a redirect to your cPanel account, please follow the steps below.



1)
Login to cPanel



2)
In the Domains section click on the Redirects icon

redirect icon



3)
On the next page you will offered the following options :

Type - 301 Permanent or a 302 Temporary. As stated above, in most cases you will want to create the default 301. Let us know if you need help deciding which type of redirect you want to create.


https?://(www.)? - Use this drop down to select the domain you wish to create the redirect for. You may also use it to specify that you wish to create a single redirect for ALL the domains associated with your account.


/ - This particular value needs to be specified only if you have a specific directory or single page you wish to create a redirect for. So if you want to redirect all traffic for a page called “example.html” to another site or page, you need to add example.html in this text field. If you wish to redirect all traffic for an entire directory called “folder1”, you would specify the folder name in this field.


Redirects to - This is where you will tell cPanel where your redirected traffic should go. You’ll need to type in a complete url here starting with the http.

www. redirection - In most cases you will probably want to go with the default Redirect with or without www. Additionally, checking the Wild Card Redirect box will redirect all files within a directory to the same filename in the redirected directory. For example, if you enable the Wild Card Redirect option and example1.com redirects to example2.com, then a visitor who tries to access the http://example1.com/pic.jpg URL will be directed to the http://example2.com/pic.jpg URL.


4) Once you have configured the redirect as you desire it, click the blue Add button

add


If you have any questions about creating a redirect or if a created redirect does not work as you expect it, let us know!

 

Please note, once your redirect is created, there is no way to edit or alter it. If you need to make a change to correct an error or adjust the function, you need to remove the redirect and recreate it.

 

 


Removing a Redirect

 

To remove a redirect from your cPanel account, please flow the steps below.



1) Login to cPanel



2) In the Domains section click on the Redirects icon

redirect icon

3) On the next page look for the Current Redirects section.



4) Under Actions, click the Delete icon.

delete


5) You will be asked if you wish to permanently remove the redirect. Click the blue Remove Redirect button to do so.

remove redirect

 

That’s it! To return to the main redirect page, click the Go Back link

go back







Was this answer helpful?

 Print this Article

Also Read

Addon Domains

What is an Addon domain? Do I want an Addon or an Alias? How to add an Addon domain? How to...

Zone Editors

cPanel offers both a Basic and Advanced Zone Editors. The Basic Zone Editor allows you to select...

Domain Aliases

What is an Alias domain? Do I want an Alias or an Addon? How to I add Alias domain? How to I...

Subdomains

What is a Subdomain?Adding a SubdomainCreating a Wildcard SubdomainModifying or Removing a...