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] +