Loading...

Knowledge Base

How to Set Up URL Redirects in cPanel

When you want to redirect visitors from one web address to another in your hosting account. This article explains how to set up URL redirects using cPanel. 

The Redirects plugin in cPanel allows you to send the visitors resolving a domain/URL to a different domain/URL or to a particular file/page in the mentioned document root.

Steps to enable Redirects
  • Login to your cPanel via valid credentials
  • Navigate to the Redirects option under the Domains tab of your cPanel

 

wse_image1
 


Add a Redirect rule

  • Select a Type of redirect from the drop down list:
    • Permanent (301) — This type of redirect even updates the visitors bookmarks.
    • Temporary (302) — This type of redirect does not update the visitor’s bookmarks.
 
wse_image1
 
  • Select the domain for which you need redirections
    • Note: Select  **All Public Domains** if you need to add a redirection rule to all your domains (addon, domains and, subdomains)

 

wse_image1
 
  • If you wish to redirect a particular directory/file of the selected domain to a URL proceed with the next option (leave blank if you don't want such redirections). This option is useful if you wish to redirect to a desired domain ‘example.com’ from a specific directory/file i.e example.com/directory/test.php.

 

wse_image1
 
  • Enter the destination URL where you would like to redirect your source.

 

wse_image1
 
  • Select how you wish to handle www redirects from the 3 options mentioned:
    • Only redirect with www. — This option only redirects visitors who enter the www. prefix before the domain name part of the URL.
    • Redirect with or without www. — This option redirects all users, regardless of whether the visitor enters the www. prefix before the domain name part of the URL.
    • Do Not Redirect www. — This option does not redirect users who enter the www. prefix before the domain name part of the URL.
 
wse_image1
 
 
  • If you plan on redirecting all pages within the source to the destination, then choose the option for a Wild Card Redirect.

wse_image1
 
 
  • Once you are done, click on "Add"
 

Check current Redirects

 
 
  • This option is present below the “Add”  button and shows all the redirect rules for your domains.
  • You can also delete any rules by clicking the Delete button under Actions.

 

wse_image1


Note
 
  • You cannot edit a redirect. To modify a redirect, you must delete it, and then recreate it.
  • You must always specify a protocol in the text box below Redirects to option. For example, http://, https://, or ftp://.
 

Loading...