location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }
<rules> <rule name=”acg_rewrite” 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> <action type=”Rewrite” url=”index.php?s={R:1}”/> </rule> </rules>
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|27CaT资源论坛
GMT+8, 2024-11-22 21:14
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.