fix redirection

This commit is contained in:
2019-10-27 22:07:47 +01:00
parent d5f3c1c3bb
commit 3a55c25944

View File

@@ -4,9 +4,9 @@ RewriteBase /
# Redirect www, other domains, non-HTTPS # Redirect www, other domains, non-HTTPS
RewriteCond %{HTTP_HOST} ^www\.mehl\.mx$ [NC] RewriteCond %{HTTP_HOST} ^www\.mehl\.mx$ [NC]
RewriteRule ^(.*)$ https://mehl.mx/$1 [R=301,L] 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] RewriteRule ^(.*)$ https://mehl.mx/ [R=301,L]
RewriteCond %{HTTPS} !on RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://mehl.mx/$1 [R=301,L] RewriteRule ^(.*)$ https://mehl.mx/$1 [R=301,L]
# Redirect old links # Redirect old links