.htaccess du dossier web

This commit is contained in:
2020-05-13 16:20:12 +02:00
parent 8f9fabd22e
commit 3ca18832f5

21
web/.htaccess Normal file
View File

@@ -0,0 +1,21 @@
AddDefaultCharset UTF-8
Options +FollowSymlinks -Indexes
<IfModule mod_rewrite.c>
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]
</IfModule>