# 301 redirect all domain request
RewriteCond %{HTTP_HOST} ^www.YOURDOMAINNAME$ [NC]
RewriteRule ^(.*)$ http://YOURDOMAINNAME/$1 [R=301,L]
RewriteCond %{HTTPS_HOST} ^www.YOURDOMAINNAME$ [NC]
RewriteRule ^(.*)$ https://YOURDOMAINNAME/$1 [R=301,L]
Redirection .htaccess
Leave a Comment
You must be logged in to post a comment.




(20 votes, average: 4.75 out of 5, rated)