Files
domokits/web/.htaccess
2019-11-21 12:25:31 +01:00

30 lines
815 B
ApacheConf

AddDefaultCharset UTF-8
Options +FollowSymlinks -Indexes
#Order Deny,Allow
#Allow from 80.13.219.222
#Deny from all
<IfModule mod_rewrite.c>
RewriteEngine On
# Forcer le HTTPS
RewriteCond %{SERVER_PORT} 80
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]
# Forcer le sous domaine
#RewriteCond %{HTTP_HOST} !^www.light-domotique.fr$
#RewriteRule ^(.*) https://www.light-domotique.fr/$1 [QSA,L,R=302]
# 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>