Update '.htaccess'

preproduction^2
Kar 2023-10-06 10:23:19 +00:00
parent e4d90b16e1
commit 0c8dd83813
1 changed files with 2 additions and 6 deletions

View File

@ -1,9 +1,5 @@
AuthType Basic
AuthName "Your authorization required message."
AuthUserFile /home/dev/.htpasswd
require valid-user
#RewriteCond %{HTTPS} !=on
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f