Compare commits
2 Commits
18e2e45585
...
fad5afb0c1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fad5afb0c1 | ||
|
|
9d68663b9c |
14
.htaccess
14
.htaccess
@@ -1,14 +0,0 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
# Редирект: ...// -> .../
|
||||
RewriteCond %{REQUEST_URI} (.*)\/\/$
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}/%1/ [R=301,L]
|
||||
|
||||
# Редирект: с www -> без www
|
||||
RewriteCond %{HTTP_HOST} ^www\.(.*)$
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
|
||||
|
||||
# Редирект: HTTP -> HTTPS
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} !https
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user