TaoLer/public/.htaccess
2020-03-14 17:29:37 +08:00

14 lines
351 B
ApacheConf

<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
FileETag MTime Size
RewriteBase /
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>