<\IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?temmoku_dirs=$1
<\/IfModule>
RewriteRule (.*)$ /index\.php\?temmoku_dirs=$1
<\rewrite>
<\rules>
<\rule name="OrgPage" stopProcessing="true">
<\match url="^(.*)$" />
<\conditions logicalGrouping="MatchAll">
<\add input="{HTTP_HOST}" pattern="^(.*)$" />
<\add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<\add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<\/conditions>
<\/rule>
<\/rules>
<\/rewrite>
需重启Nginx
if (!-e $request_filename) {
rewrite ^/index.php(.*)$ /index.php?temmoku_dirs=$1 last;
rewrite ^(.*)$ /index.php?temmoku_dirs=$1 last;
break;
}
联系电话:0516-86549872 版权所有:邳州天目网络科技有限公司
Powered by temmoku T-1.0 Code © 2016-2018 Temmoku
工信部备案号:苏ICP备15017876号