Below you will find pages that utilize the taxonomy term “Phpcms”
September 9, 2010
Nginx常用Rewrite(伪静态规则)
"\u003cp\u003e信现在大部分用Linux VPS的朋友都在使用这个迅速传播的 \u003ca href=\"http://nginx.me/\"\u003eNginx\u003c/a\u003e,今天就整理一下最常见的PHP程序的Rewrite(伪静态规则)。\u003c/p\u003e\n\u003cp\u003eWordPress:\u003c/p\u003e\n\u003cp\u003elocation / {\nindex index.html index.php;\nif (-f $request_filename/index.html){\nrewrite (.\u003cem\u003e) $1/index.html break;\n}\nif (-f $request_filename/index.php){\nrewrite (.\u003c/em\u003e) $1/index.php;\n}\nif (!-f $request_filename){\nrewrite (.*) /index.php;\n}\n}\u003c/p\u003e\n\u003cp\u003ePHPCMS:\u003c/p\u003e\n\u003cp\u003elocation / {\n###以下为PHPCMS 伪静态化rewrite规则\nrewrite ^(.\u003cem\u003e)show-([0-9]+)-([0-9]+).html$ $1/show.php?itemid=$2\u0026amp;page=$3;\nrewrite ^(.\u003c/em\u003e)list-([0-9]+)-([0-9]+).html$ …\u003c/p\u003e"