forked from ZwiiCMS-Team/ZwiiCMS
Redirection http vers https si url intelligente
This commit is contained in:
parent
b9c1055c87
commit
fa698604b0
@ -562,6 +562,8 @@ class config extends common {
|
|||||||
"\tRewriteCond %{REQUEST_FILENAME} !-f" . PHP_EOL .
|
"\tRewriteCond %{REQUEST_FILENAME} !-f" . PHP_EOL .
|
||||||
"\tRewriteCond %{REQUEST_FILENAME} !-d" . PHP_EOL .
|
"\tRewriteCond %{REQUEST_FILENAME} !-d" . PHP_EOL .
|
||||||
"\tRewriteRule ^(.*)$ index.php?$1 [L]" . PHP_EOL .
|
"\tRewriteRule ^(.*)$ index.php?$1 [L]" . PHP_EOL .
|
||||||
|
"\tRewriteCond %{SERVER_PORT} 80" . PHP_EOL .
|
||||||
|
"\tRewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]" . PHP_EOL .
|
||||||
'</ifModule>',
|
'</ifModule>',
|
||||||
FILE_APPEND
|
FILE_APPEND
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user