Ifmodule et non ifmodule

This commit is contained in:
Fred Tempez 2022-01-08 18:30:56 +01:00
parent f79e7bee9e
commit 7b825054d2
1 changed files with 2 additions and 2 deletions

View File

@ -554,7 +554,7 @@ class config extends common {
file_put_contents(
'.htaccess',
PHP_EOL .
'<ifModule mod_rewrite.c>' . PHP_EOL .
'<IfModule mod_rewrite.c>' . PHP_EOL .
"\tRewriteEngine on" . PHP_EOL .
"\tRewriteBase " . helper::baseUrl(false, false) . PHP_EOL .
"\tRewriteCond %{REQUEST_FILENAME} !-f" . PHP_EOL .
@ -562,7 +562,7 @@ class config extends common {
"\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
);
// Change le statut de la réécriture d'URL (pour le helper::baseUrl() de la redirection)