diff --git a/static/.htaccess b/static/.htaccess index b862e57..c39567b 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -4,9 +4,9 @@ RewriteBase / # Redirect www, other domains, non-HTTPS RewriteCond %{HTTP_HOST} ^www\.mehl\.mx$ [NC] RewriteRule ^(.*)$ https://mehl.mx/$1 [R=301,L] -RewriteCond %{HTTP_HOST} !^mehl\.mx$ [NC] +RewriteCond %{HTTP_HOST} !^mehl\.mx(.*)$ [NC] RewriteRule ^(.*)$ https://mehl.mx/ [R=301,L] -RewriteCond %{HTTPS} !on +RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://mehl.mx/$1 [R=301,L] # Redirect old links