Quantcast
Channel: User user3040610 - Stack Overflow
Viewing all articles
Browse latest Browse all 44

Answer by user3040610 for how to remove www using htacces

$
0
0

Try the below code,it will redirect to https without www and works for me

RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]

Viewing all articles
Browse latest Browse all 44

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>