What is the full code that redirects all urls (including subfolders) without www For example: http://www. abc. co. in redirects to http://abc.o.in as well as http://www. abc. co. in/subfolder redirects http://abc. co. in/subfolder
Try below code RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]