1. 程式人生 > >lnmp環境下 tp3.2 not found

lnmp環境下 tp3.2 not found

本地 HP roo index class yun tails https com

最近將一個lamp環境下使用tp3.2 開發的項目遷移到本地了,

但是在打開項目的時候,提示 not found,經過多方面查找發現是偽靜態問題,解決方法如下:

在nginx 域名配置文件我這裏是【vhost.conf】裏添加

location / {
        root   /www/58coin/pc/;
        index  index.html index.htm index.php ;

        #ThinkPHP REWRITE支持
        if (!-e  $request_filename) {
            rewrite ^/(.*)$ /index.php?s=$1
last; } }

重啟nginx,搞定

參考資料

https://blog.csdn.net/u010295544/article/details/78403544

https://yq.aliyun.com/ziliao/46421

lnmp環境下 tp3.2 not found