nginx下ThinkPHP5.0路由無效

nginx下開啓tp5的路由 由於nginx不支持pathinfo,導致TP5用路由訪問時會報404。 解決辦法,找到nginx下虛擬主機的配置文件,一般是在/usr/ local/ nginx/ conf/ vhost/ 域名.conf 在中間加上一段代碼 location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.
相關文章
相關標籤/搜索