File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1+
2+ RewriteEngine on
3+
4+ # Transfer everything from http to https
5+ RewriteCond %{HTTPS} !=on
6+ RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301 ,L]
7+
18# Redirect visitors who request the root domain path (e.g. www.sparna.fr) to the appropriate language version
29# Fallback to English version if no matching browser language defined
310# Based on language version being at e.g. www.sparna.fr/en/
411# This has no effect on any subpaths of the website
512# Using a 302 temporary redirect header stops the redirection from being cached in the browser.
613
7- RewriteEngine on
8-
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-
1614# language starts with FR
1715RewriteCond %{HTTP:Accept-Language} ^fr [NC]
1816RewriteRule ^$ /fr/ [L,R=302 ]
You can’t perform that action at this time.
0 commit comments