phpwind伪静态规则(IIS,Nginx,Apache)的介绍及代码_phpcms教程-查字典教程网
phpwind伪静态规则(IIS,Nginx,Apache)的介绍及代码
phpwind伪静态规则(IIS,Nginx,Apache)的介绍及代码
发布时间:2016-12-23 来源:查字典编辑
摘要:phpwindiis下伪静态规则[ISAPI_Rewrite]RewriteRule^(.*)/(.*)-htm-(.*)-(.*).htm...

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;

}

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新phpcms学习
    热门phpcms学习
    CMS教程子分类