Skip to content

Commit 03a205f

Browse files
committed
fix .htaccess
1 parent 458f51c commit 03a205f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

static/.htaccess

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66

77
RewriteEngine on
88

9+
# Transfer everything from http to https
10+
# And also everything without www to the same with www
11+
RewriteCond %{HTTPS} off [OR]
12+
RewriteCond %{HTTP_HOST} !^www\. [NC]
13+
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
14+
RewriteRule ^.*$ https://www.%1%{REQUEST_URI} [L,NE,R=301]
15+
916
# language starts with FR
1017
RewriteCond %{HTTP:Accept-Language} ^fr [NC]
1118
RewriteRule ^$ /fr/ [L,R=302]
1219

1320
# else redirect to the English version
14-
RewriteRule ^$ /en/ [L,R=302]
15-
16-
# Transfer everything from http to https
17-
# And also everything without www to the same with www
18-
RewriteCond %{HTTPS} off [OR]
19-
RewriteCond %{HTTP_HOST} !^www\. [NC]
20-
RewriteRule ^.*$ https://www.%1%{REQUEST_URI} [L,NE,R=301]
21+
RewriteRule ^$ /en/ [L,R=302]

0 commit comments

Comments
 (0)