Browse Source

fix redirection

max.mehl 2 weeks ago
parent
commit
3a55c25944
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      static/.htaccess

+ 2
- 2
static/.htaccess View File

@@ -4,9 +4,9 @@ RewriteBase /
4 4
 # Redirect www, other domains, non-HTTPS
5 5
 RewriteCond %{HTTP_HOST} ^www\.mehl\.mx$ [NC]
6 6
 RewriteRule ^(.*)$ https://mehl.mx/$1 [R=301,L]
7
-RewriteCond %{HTTP_HOST} !^mehl\.mx$ [NC]
7
+RewriteCond %{HTTP_HOST} !^mehl\.mx(.*)$ [NC]
8 8
 RewriteRule ^(.*)$ https://mehl.mx/ [R=301,L]
9
-RewriteCond %{HTTPS} !on
9
+RewriteCond %{SERVER_PORT} !^443$
10 10
 RewriteRule ^(.*)$ https://mehl.mx/$1 [R=301,L]
11 11
 
12 12
 # Redirect old links

Loading…
Cancel
Save