Below you will find pages that utilize the taxonomy term “phpcms”
September 9, 2010
Nginx常用Rewrite(伪静态规则)
"信现在大部分用Linux VPS的朋友都在使用这个迅速传播的 Nginx,今天就整理一下最常见的PHP程序的Rewrite(伪静态规则)。\nWordPress:\nlocation / { index index.html index.php; if (-f $request_filename/index.html){ rewrite (.) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } }\nPHPCMS:\nlocation / { ###以下为PHPCMS 伪静态化rewrite规则 rewrite ^(.)show-([0-9]+)-([0-9]+).html$ $1/show.php?itemid=$2\u0026amp;page=$3; rewrite ^(.)list-([0-9]+)-([0-9]+).html$ …"