PHP_SMART_HOME_V3/.htaccess
2020-04-23 17:37:19 +02:00

11 lines
301 B
ApacheConf

RewriteEngine On
DirectoryIndex ./public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) ./public/index.php?url=/$1 [QSA,L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
AddType application/x-httpd-php .php .phtml