前面361源碼給大家介紹了《ecshop偽靜態規則.htaccess格式》等關于ecshop的相關偽靜態規則,今天抽點時間給大家介紹一下phpwind的偽靜態規則。
phpwind iis下偽靜態規則
[ISAPI_Rewrite]
RewriteRule ^(.*)/(.*)-htm-(.*)-(.*).html$ $1/$2.php?$3=$4
RewriteRule ^(.*)/read-htm-tid-(.*).html$ $1/read.php?tid=$2
RewriteRule ^(.*)/thread-htm-fid-(.*).html$ $1/thread.php?fid=2
RewriteRule ^(.*)/simple/([a-z0-9_]+.html)$ $1/simple/index.php?$2
phpwind apache下偽靜態規則
RewriteEngine On
RewriteRule ^(.*)/thread-htm-tid-(d+)-(.*).html $1/thread.php?fid=$2
RewriteRule ^(.*)/read-htm-tid-(d+)-(.*).html $1/read.php?tid=$2
RewriteRule ^(.*)/commtopics-(d+)-(.*)$ $1/thread.php?fid=$2&page=$3
RewriteRule ^(.*)/commtopics-(.*)$ $1/thread.php?fid=$2&page=$3
RewriteRule ^(.*)/article-(d+)-(d+)-(.*).html$ $1/read.php?tid=$2&page=$3&fpage=$4
RewriteRule ^(.*)/article-(d+)-(.*).html$ $1/read.php?tid=$2&page=$3
RewriteRule ^(.*)/article-(.*).html$ $1/read.php?tid=$2
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/simple/([a-z0-9_]+.html)$ $1/simple/index.php?$2
phpwind nginx下偽靜態規則
location / {
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;
rewrite ^(.*)/simple/([a-z0-9_]+.html)$ $1/simple/index.php?$2 last;
}
上面就是phpwind偽靜態分別在IIS,Nginx,Apache的偽靜態規則,希望對有需要的朋友多點幫助。
以上就是phpwind偽靜態規則(IIS,Nginx,Apache)的介紹及代碼的全部內容,希望對大家的學習和解決疑問有所幫助,也希望大家多多支持武林網。新聞熱點
疑難解答
圖片精選