File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 66
77RewriteEngine 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
1017RewriteCond %{HTTP:Accept-Language} ^fr [NC]
1118RewriteRule ^$ /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 ]
You can’t perform that action at this time.
0 commit comments