Skip to content

Commit b6e1b25

Browse files
MichalKalitadg
authored andcommitted
Repaired rewrite rule flags (#482)
Rewrite rule flags use comma as separator, cannot be used space.
1 parent 4369280 commit b6e1b25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cs/routing.texy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ Přesměrování všech adres u již zaběhnuté aplikace lze docílit pomocí s
304304
<IfModule mod_rewrite.c>
305305
RewriteEngine On
306306
...
307-
RewriteCond %{HTTPS} !=on
308-
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L, R=301]
307+
RewriteCond %{HTTPS} off
308+
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
309309
...
310310
</IfModule>
311311
\--

en/routing.texy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ Forward all addresses for already well-established applications can be achieved
369369
<IfModule mod_rewrite.c>
370370
RewriteEngine On
371371
...
372-
RewriteCond %{HTTPS} !=on
373-
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L, R=301]
372+
RewriteCond %{HTTPS} off
373+
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
374374
...
375375
</IfModule>
376376
\--

0 commit comments

Comments
 (0)