How to redirect non-www URLs to www?

ou can redirect all of the requests for domain to by modifying your website's .htaccess file. You need to add the following lines at the beginning of the file in order to setup that redirection:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301]

Where is your actual domain name.
You can edit the .htaccess file using the File Manager in cPanel or via FTP.
From now on, when someone access the visitor will be redirected to

Did you find this article useful?   0 out of 0 people found this article useful.

Related Articles

  • Comments

Add Comment

Replying to  

Self-Hosted Help Desk Software by SupportPal.


Forgot password?
Register now