How to force www or non-www for a cPanel site

269ac00f765508cb74b25d006dbf5bb2

Written by Dennis Nind

Last published at: February 8th, 2019

It is recommended by Google that your site is only accessible via either www or without www (and NOT both). As such, you should configure a redirect to force one or the other. We provide a simple facility for doing this...

  1. Login to cPanel
  2. Go to 'Nginx Cluster Control' section and select 'CLOUDNS'
  3. Select the domain you wish to enable the protection for from the dropdown list and click 'Configure'
  4. Select 'Application Settings'
  5. Select the preferred option from the 'www redirection' dropdown
  6. Click 'Submit'

Note: If you are using WordPress, you will need to ensure your correct domain (with or without www.) is added to the Settings -> General screen.