update
This commit is contained in:
@@ -8,13 +8,13 @@ RewriteCond %{HTTPS} off
|
||||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
RewriteCond %{REQUEST_METHOD} ^(GET|HEAD)$
|
||||
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
||||
RewriteRule ^ %{REQUEST_SCHEME}://%1%{REQUEST_URI} [L,R=301]
|
||||
RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]
|
||||
RewriteCond %{REQUEST_METHOD} ^(GET|HEAD)$
|
||||
RewriteCond %{REQUEST_URI} !^/admin(/|$) [NC]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} !/$
|
||||
RewriteRule ^(.+)$ %{REQUEST_SCHEME}://%{HTTP_HOST}/$1/ [L,R=301]
|
||||
RewriteRule ^(.+)$ https://%{HTTP_HOST}/$1/ [L,R=301]
|
||||
|
||||
|
||||
ErrorDocument 404 /404.html
|
||||
|
||||
Reference in New Issue
Block a user