force_nonwww_ssl
Forcing non-www and https
Create and enable .htaccess
Once you have done this you will need to add the following code:
#force non www RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] #force https RewriteEngine on RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
force_nonwww_ssl.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1