Nginx常用Rewrite伪静态法则
Nginx常用Rewrite伪静态法则信赖此刻大部门用LinuxVPS的伴侣都在利用这个敏捷传布的Nginx,本日就清算一下最常见的PHP法式的Rewrite(伪静态法则)。Wordpress:location/{indexindex.htmlindex.php;if(-f$request_filename/index.html){rewrite(.*)$1/index.htmlbreak;}if(-f$request_filename/index.php){rewrite(.*)$1/index.php;}if(!-f$request_filename){rewrite(.*)/index.p
用户评论