thinkphp伪静态如何转换啊,求解。转成nginx 的伪静态;

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
模式: 'URL_MODEL' => 1,

location / {
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php?s=$1 last;
        break;
    }
}追问

我也是这样转的哦 网页404

追答

你要把相关的nginx.conf配置贴才出来,才能分析

追问

nginx+mysql+php5.6 amh面板的环境啊

这里贴不下代码,

追答

你就把server那一段粘上来就可以了,我14:25不是贴了一段了

温馨提示:答案为网友推荐,仅供参考
相似回答