|  
  WordPress和PHPCMS的偽靜態(tài)規(guī)則,分別如下 
  
1、WordPress偽靜態(tài)規(guī)則 電腦學習網(wǎng)站www.boydavid.com 
location / { 
        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; 
        } 
    } 
  
  
2、PHPCMS偽靜態(tài)規(guī)則 計算機愛好者www.boydavid.com 
location / { 
###以下為PHPCMS 偽靜態(tài)化rewrite規(guī)則 
rewrite ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3; 
rewrite ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&page=$3; 
rewrite ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2; 
  
####以下為PHPWind 偽靜態(tài)化rewrite規(guī)則 
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last; 
rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last; 
 }  本文出自:億恩科技【www.cmtents.com】 
      
      
		服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] 
       |