How to Redirect Different Versions of the Same Site (www to non-www and vice versa)

You can redirect www accesses of your domain to the non-www version using the cPanel Redirections tool.

These redirections are often recommended by search engines such as Google to avoid having your site penalized for duplicate content.

Nuagerie recommends the usage of the version with www rather than the one without (for added flexibility with CNAME record manipulations); however, this is mostly a personal choice and will not impact the actual functionality of your site.

To redirect the www. site to the non-www version:

  1. Log in to cPanel
  2. Under Domains, click Redirections
  3. Complete the form as follows:
    1. Type = Permanent
    2. Choose the domain to redirect (leave the box to the right blank)
    3. Enter the complete address to redirect to (without www), ex: http://domain.com
    4. Choose option Redirect only with www.
    5. Tick checkbox Wildcard redirection
  4. Click on Add

To redirect the non-www. site to the version with www:

  1. Log in to cPanel
  2. Under Domains, click Redirections
  3. Complete the form as follows:
    1. Type = Permanent
    2. Choose the domain to redirect (leave the box to the right blank)
    3. Enter the complete address to redirect to (with www), ex: http://www.domain.com
    4. Choose option Do not redirect www.
    5. Tick checkbox Wildcard redirection
  4. Click on Add


If you still have questions or concerns, feel free to contact us by opening a support ticket or by using our live chat feature.

  • cPanel, site Web, Website
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

 How to empty my DNS cache

Overview Your DNS cache stores the locations (IP addresses) of web servers that contain web...

 What is cPanel?

cPanel is a control panel with which you can manage almost any element of your cPanel hosting...

 How cPanel & WHM Improved Email Hosting

cPanel and WHM have gone through some serious upgrades to their Email Hosting features...

 CURL: could not resolve host: cpanel.net

Error: curl: (6) Could not resolve host: securedownloads.cpanel.net; Unknown error Fix:...

 How can I activate my paid license after a trial?

You can do this by running this command in SSH: /usr/local/cpanel/cpkeyclt It should...