Htaccess Redirect www to non-www https
1 minute read
.htaccess settings to redirect www to non-www with https:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
Reference:
I feedback.
Let me know what you think of this article on twitter @mtasuandi or leave a comment below!
Let me know what you think of this article on twitter @mtasuandi or leave a comment below!
comments powered by Disqus