-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
26 lines (21 loc) · 1.28 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<IfModule mod_rewrite.c>
RewriteEngine on
# If the hostname is mineriailegal.amazoniasocioambiental.org
RewriteCond %{HTTP_HOST} ^mineriailegal\.amazoniasocioambiental\.org$
RewriteCond %{QUERY_STRING} !(^|&)lang=es($|&)
# 301 redirect to the same resource on mineriailegal.amazoniasocioambiental.org
RewriteRule ^ https://mineriailegal.amazoniasocioambiental.org%{REQUEST_URI}?lang=es [R=301,L,NE]
# If the hostname is illegalmining.amazoniasocioambiental.org
RewriteCond %{HTTP_HOST} ^illegalmining\.amazoniasocioambiental\.org$
RewriteCond %{QUERY_STRING} !(^|&)lang=en($|&)
# 301 redirect to the same resource on illegalmining.amazoniasocioambiental.org
RewriteRule ^ https://illegalmining.amazoniasocioambiental.org%{REQUEST_URI}?lang=en [R=301,L,NE]
# If the hostname is garimpoilegal.amazoniasocioambiental.org
RewriteCond %{HTTP_HOST} ^garimpoilegal\.amazoniasocioambiental\.org$
RewriteCond %{QUERY_STRING} !(^|&)lang=pt($|&)
# 301 redirect to the same resource on garimpoilegal.amazoniasocioambiental.org
RewriteRule ^ https://garimpoilegal.amazoniasocioambiental.org%{REQUEST_URI}?lang=pt [R=301,L,NE]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>