Skip to content

Commit d0bc442

Browse files
committed
fix .htaccess
1 parent 03a205f commit d0bc442

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

static/.htaccess

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
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
1715
RewriteCond %{HTTP:Accept-Language} ^fr [NC]
1816
RewriteRule ^$ /fr/ [L,R=302]

0 commit comments

Comments
 (0)