Views: 402 Created: 2021-08-01 07:59:02 Modified: 2023-03-20 20:49:50
This is the code for an .htaccess file which does: -> Redirect all www requests to non-www requests<br /> -> Always force SSL<br /> <br /> RewriteCond %{HTTPS} !=on<br /> RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<br /> RewriteCond %{HTTP_HOST} ^www\\.(.*)$ [NC]<br /> RewriteRule ^(....