nginx php和html伪静态

phpstudy中设置:  

try_files $uri $uri/ /index.php?$query_string;(php的伪静态)

try_files $uri $uri/ /index.html?$query_string;(html的伪静态)

  

phpstudy 与 nginx中单独设置:

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

  

posted @ 2020-10-26 10:52  Smile☆  阅读(965)  评论(0编辑  收藏  举报