Redirect www to non-www (or vice-versa)

You can redirect www accesses of your domain to 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. By default, Web Hosting Canada servers will display the same content of your site with or without the www portion of the address.

Web Hosting Canada recommends the usage of the version with www rather than the one without (for added flexibility with CNAME record manipulations), however for most users this choice will largely be one of preference and will not impact the actual functionality of your site.

To redirect access with www to 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 accesses without www 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


Article ID: #HC5151

Was this answer helpful?