www to non www htaccess

You can redirect all of the requests for www.laughingadda.com domain to laughingadda.com by modifying your website’s .htaccess file. You have to add the following lines in the beginning of the file so that the redirection is properly set up:

RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]

You can edit the .htaccess file using the File Manager in cPanel or via FTP.

From now on, when someone access http://www.laughingadda.com that visitor will be redirected to http://laughingadda.com.



Leave a Reply