正文 thinkphp将php后缀重定向为aspx的nginx规则 黑加 V管理员/ 2020年/ 0 评论/ 773 阅读 0920 nginx重定向伪静态规则, .php重定向为.aspxlocation ~* news_detail { rewrite ^(.*)news_detail.aspx(.*)$ /show/index/$query_string last; } location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }
还没有评论,来说两句吧...