.htaccess du dossier web
This commit is contained in:
21
web/.htaccess
Normal file
21
web/.htaccess
Normal 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>
|
||||
Reference in New Issue
Block a user