From 3ca18832f56e60dd1f53c8c0635a90c8b0b65396 Mon Sep 17 00:00:00 2001 From: Laurent LE CORRE Date: Wed, 13 May 2020 16:20:12 +0200 Subject: [PATCH] .htaccess du dossier web --- web/.htaccess | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 web/.htaccess diff --git a/web/.htaccess b/web/.htaccess new file mode 100644 index 00000000..2c55c04b --- /dev/null +++ b/web/.htaccess @@ -0,0 +1,21 @@ +AddDefaultCharset UTF-8 + +Options +FollowSymlinks -Indexes + + + RewriteEngine On + + # Forcer le HTTPS + RewriteCond %{SERVER_PORT} 80 + RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L] + + # If thelia is installed in a subdirectory (e.g., thelia2) + # define the RewriteBase below to get a proper URL rewriting + # RewriteBase /thelia2 + + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + + RewriteRule ^(.*)$ index.php [QSA,L] + RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last] +