Files
littleTiger/.htaccess
2019-02-28 19:48:21 +08:00

21 lines
601 B
ApacheConf

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
#用于saas小程序
RewriteCond %{REQUEST_URI} ^/saas/
RewriteRule ^saas/(.*?)/(.*)$ $2?_saas_app=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,QSA,E=PATH_INFO:$1]
RewriteCond %{SCRIPT_FILENAME} \.php [NC]
RewriteCond % !^$
RewriteRule ^/?application/.*\.php - [F]
RewriteRule ^/?backup/.*\.php - [F]
#RewriteRule ^/?install/.*\.php - [F]
RewriteRule ^/?miniapp/.*\.php - [F]
RewriteRule ^/?runtime/.*\.php - [F]
RewriteRule ^/?template/.*\.php - [F]
</IfModule>