- 0
`RewriteEngine on
#for http to https
RewriteCond %{HTTP_HOST} ^www.initedit.com [NC]
RewriteRule ^(.*)$ https://initedit.com/$1 [L,R=301]
#for www to non www
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]`
#for http to https
RewriteCond %{HTTP_HOST} ^www.initedit.com [NC]
RewriteRule ^(.*)$ https://initedit.com/$1 [L,R=301]
#for www to non www
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]`
comment
save
share
facebook
twitter
google