Browse Source

fix redirection

new-gallery
max.mehl 2 years ago
parent
commit
3a55c25944
Signed by: mxmehl GPG Key ID: 2704E4AB371E2E92
  1. 4
      static/.htaccess

4
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

Loading…
Cancel
Save