超全的dedecms伪静态收集

网页制作 / CSS / CSS布局实例,

高手可忽略,不定期更新

--->for IIS--->httpd.ini

[ISAPI_Rewrite]

 

# 缓存3600秒 = 1 小时(hour)

CacheClockRate 3600

 

RepeatLimit 32

 

#eg--->/order.html--->/plus/order.php

RewriteRule ^(.*)/order\.html(?:(\?.*))* $1/plus/order\.php [I]   

 

#eg--->/order/1234.html--->/plus/order.php?arcID=1234

RewriteRule ^(.*)/order/([0-9]+)\.html(?:(\?.*))* $1/plus/order.php\?arcID=$2 [I]

 

#eg--->/search.html--->/plus/search.php

RewriteRule ^(.*)/search\.html(?:(\?.*))* $1/plus/search\.php?$2 [I]

 

#eg--->/tags.html--->/plus/tags.php

RewriteRule ^(.*)/tags\.html $1/plus/tags\.php [I]

 

#eg--->/tag/abc123--->/tag/abc123.html

RewriteRule ^(.*)/tag/([(a-z)+(1-9)]+) $1/tag/$2\.html [L,I]

 

#eg--->/tags/abc123--->/plus/tags.php?/abc123

RewriteRule ^(.*)/tags/(.*)(?:(\?.*))* $1/plus/tags\.php\?\/$2 [I]

 

#eg--->/tags/abc/def--->/plus/tags.php?/abc/

RewriteRule ^(.*)/tags/(.*)\/(?:(\?.*))* $1/plus/tags\.php\?\/$2\/ [I]

 

#eg--->/tags/abc/321def--->/plus/tags.php?/abc/3

RewriteRule ^(.*)/tags/(.*)\/([0-9])(?:(\?.*))* $1/plus/tags\.php\?\/$2\/$3 [I]

 

 

#RewriteRule ^(.*)/tags/(.*)\/([0-9])\/(?:(\?.*))* $1/plus/tags\.php\?\/$2\/$3\/ [I]

 

#eg--->/type.html--->/type.php

RewriteRule ^(.*)/type\.html(?:(\?.*))* $1/type\.php [I]

 

#eg--->/post/1234.html--->/post.php?did=1234

RewriteRule ^(.*)/post/([0-9]+)\.html(?:(\?.*))* $1/post.php\?did=$2 [I]

 

#eg--->/question-1234.html--->/question.php?id=1234

RewriteRule ^(.*)/question-([0-9]+)\.html $1/question\.php\?id=$2 [I]

 

#eg--->/browser-1-1234.html--->/browser.php?tid=1234

RewriteRule ^(.*)/browser-1-([0-9]+)\.html $1/browser\.php\?tid=$2 [I]

 

#eg--->/browser-2-1234.html--->/browser.php?tid2=1234

RewriteRule ^(.*)/browser-2-([0-9]+)\.html $1/browser\.php\?tid2=$2 [I]

 

#eg--->/browser-2-1234.html--->/browser.php?tid2=1234

RewriteRule ^(.*)/browser-1-([0-9]+)-page-([0-9]+)\.html $1/browser\.php\?tid=$2&page=$3 [I]

 

#eg--->/browser-2-1-page-1.html--->/browser.php?tid2=1&page=1

RewriteRule ^(.*)/browser-2-([0-9]+)-page-([0-9]+)\.html $1/browser\.php\?tid2=$2&page=$3 [I]

 

#eg--->/browser-1.html--->/browser.php?lm=1

RewriteRule ^(.*)/browser-([0-9]+)\.html $1/browser\.php\?lm=$2 [I]

 

#eg--->/browser-1-90-3.html--->/browser.php?tid=90&lm=3

RewriteRule ^(.*)/browser-1-([0-9]+)-([0-9]+)\.html $1/browser\.php\?tid=$2&lm=$3 [I]

 

#eg--->/browser-2-1-2.html--->/browser.php?tid2=1&lm=2

RewriteRule ^(.*)/browser-2-([0-9]+)-([0-9]+)\.html $1/browser\.php\?tid2=$2&lm=$3 [I]

 

#eg--->/browser-1-page-2.html--->/browser.php?lm=1&page=2

RewriteRule ^(.*)/browser-([0-9]+)-page-([0-9]+)\.html $1/browser\.php\?lm=$2&page=$3 [I]

 

#--->/browser-1-90-3-page-2.html--->/browser.php?tid=90&lm=3&page=2

RewriteRule ^(.*)/browser-1-([0-9]+)-([0-9]+)-page-([0-9]+)\.html $1/browser\.php\?tid=$2&lm=$3&page=$4 [I]

 

RewriteRule ^(.*)/browser-2-([0-9]+)-([0-9]+)-page-([0-9]+)\.html $1/browser\.php\?tid2=$2&lm=$3&page=$4 [I]

#eg--->频道页--->/arclist/1.html--->/plus/list.php?tid=1

RewriteRule ^(.*)/arclist/([0-9]+)\.html(?:(\?.*))* $1/plus/list\.php\?tid=$2 [L,I]

#eg--->列表分页--->/arclist/3-96-8.html--->/plus/list.php?tid=3&TotalResult=96&PageNo=8 

RewriteRule ^(.*)/arclist/([0-9]+)-([0-9]+)-([0-9]+)\.html(?:(\?.*))* $1/plus/list\.php\?tid=$2&TotalResult=$3&PageNo=$4 [L,I]

#eg--->文章页--->/archives/showArticle-11137-1.html--->/plus/view.php?arcID=11137&pageno=1

RewriteRule ^(.*)/archives/showArticle-([0-9]+)-([0-9]+)\.html(?:(\?.*))* $1/plus/view\.php\?arcID=$2&pageno=$3 [L,I]

#--->/tag/abc--->/tag/abc.html
RewriteRule ^(.*)/tag/(.*)(?:(\?.*))* $1/tag/$2\.html 

 

#--->/doctor/13214.shtml--->/html/doctor/13214.shtml
RewriteRule ^(.*)/(.*)/([0-9]+).shtml $1/html/$2/$3\.shtml 

dede织梦修改搜索分页伪静态

/include/arc.searchview.class.php   查找 $purl .= "?".$geturl; 添加一行

$purl= str_replace("plus/search.php","search.html",$purl); 

RewriteRule ^(.*)/search\.html(?:(\?.*))* $1/plus/search\.php?$2 [I]

 

织梦5.7问答伪静态

#eg--->/ask--->/ask/

RewriteRule ^(.*)/ask $1/ask/ [L,I]

#eg--->/ask/123.html--->/ask/?ct=question&askaid=123

RewriteRule ^(.*)/ask/([0-9]+)\.html(?:(\?.*))*$ $1/ask/\?ct=question&askaid=$2 [L,I]

#eg--->/type/--->/?ct=type

RewriteRule ^(.*)/type/ $1/\?ct=type [L,I]

#eg--->/type--->/?ct=type

RewriteRule ^(.*)/type $1/\?ct=type [L,I]

#eg--->/question-post/--->/?ct=question&ac=ask

RewriteRule ^(.*)/question-post/ $1/\?ct=question&ac=ask [L,I]

#eg--->/ask/search/测试/--->/ask/?ct=search&q=测试

RewriteRule ^(.*)/search/(.*)/ $1/\?ct=search&q=$2 [L,I]

#eg--->/ask/search/原因/2/--->/ask/?ct=search&q=原因&page=2

RewriteRule ^(.*)/search/(.*)/([0-9]+)/ $1/\?ct=search&q=$2&page=$3 [L,I]

#eg--->/ask/question-search/--->/ask/?ct=search&ac=ask_search

RewriteRule ^(.*)/question-search/ $1/\?ct=search&ac=ask_search [L,I]

#eg--->/ask/question-complete/--->/ask/?ct=question&ac=ask_complete

RewriteRule ^(.*)/question-complete/ $1/\?ct=question&ac=ask_complete [L,I]

#eg--->/ask/question-complete/%B6%A5%B6%A5%B6%A5%B6%A5%B6%A5/--->/ask/?ct=question&ac=ask_complete&title=%B6%A5%B6%A5%B6%A5%B6%A5%B6%A5

RewriteRule ^(.*)/question-complete/(.*)/ $1/\?ct=question&ac=ask_complete&title=$2 [L,I]

 

 

#eg--->/abc-1/--->/?ct=browser&lm=1

RewriteRule ^(.*)/abc-([0-9]+)/ $1/\?ct=browser&lm=$2 [L,I]

#eg--->/abc-1--->/?ct=browser&lm=1

RewriteRule ^(.*)/abc-([0-9]+) $1/\?ct=browser&lm=$2 [L,I]

 

#eg--->/abc-1/2/--->/?ct=browser&lm=1&page=2

RewriteRule ^(.*)/abc-([0-9]+)/([0-9]+)/ $1/\?ct=browser&lm=$2&page=$3 [L,I]

#eg--->/abc-1/2--->/?ct=browser&lm=1&page=2

RewriteRule ^(.*)/abc-([0-9]+)/([0-9]+) $1/\?ct=browser&lm=$2&page=$3 [L,I]

 

#eg--->/abc-1-2/--->/?ct=browser&tdir=abc&tid=2

RewriteRule ^(.*)/([a-z]+)-1-([0-9]+)/ $1/\?ct=browser&tdir=$2&tid=$3 [L,I]

#eg--->/abc-1-2--->/?ct=browser&tdir=abc&tid=2

RewriteRule ^(.*)/([a-z]+)-1-([0-9]+) $1/\?ct=browser&tdir=$2&tid=$3 [L,I]

 

#eg--->/abc-1-2/3/--->/?ct=browser&tdir=abc&tid=2&page=3

RewriteRule ^(.*)/([a-z]+)-1-([0-9]+)/([0-9]+)/ $1/\?ct=browser&tdir=$2&tid=$3&page=$4 [L,I]

#eg--->/abc-1-2/3--->/?ct=browser&tdir=abc&tid=2&page=3

RewriteRule ^(.*)/([a-z]+)-1-([0-9]+)/([0-9]+) $1/\?ct=browser&tdir=$2&tid=$3&page=$4 [L,I]

 

#eg--->/abc-2-2/--->/?ct=browser&tdir=abc&tid2=2

RewriteRule ^(.*)/([a-z]+)-2-([0-9]+)/ $1/\?ct=browser&tdir=$2&tid2=$3 [L,I]

#eg--->/abc-2-2--->/?ct=browser&tdir=abc&tid2=2

RewriteRule ^(.*)/([a-z]+)-2-([0-9]+) $1/\?ct=browser&tdir=$2&tid2=$3 [L,I]

 

#eg--->/abc-2-2/3/--->/?ct=browser&tdir=abc&tid2=2&page=3

RewriteRule ^(.*)/([a-z]+)-2-([0-9]+)/([0-9]+)/ $1/\?ct=browser&tdir=$2&tid2=$3&page=$4 [L,I]

#eg--->/abc-2-2/3--->/?ct=browser&tdir=abc&tid2=2&page=3

RewriteRule ^(.*)/([a-z]+)-2-([0-9]+)/([0-9]+) $1/\?ct=browser&tdir=$2&tid2=$3&page=$4 [L,I]

 

频道 列表 专题   在根目录下新建html文件夹 将所有的频道,列表都生成到其下,防止网站目录混乱

#eg--->/zt/abc.html--->/zt/abc.html

RewriteRule ^(.*)/zt/(.*)$ $1/zt/$2 [L,I]

 

#eg--->/abc/def/hijk/--->/html/abc/def/hijk/

RewriteRule ^(.*)/([a-z]+)/([a-z]+)/([a-z]+)/$ $1/html/$2/$3/$4/ [L,I]

 

#eg--->/abc/def/hijk/list_2.html--->/html/abc/def/hijk/list_2.html

RewriteRule ^(.*)/([a-z]+)/([a-z]+)/([a-z]+)/list_(.*)\.html$ $1/html/$2/$3/$4/list_$5\.html [L,I]

 

#eg--->/abc/def/--->/html/abc/def/

RewriteRule ^(.*)/([a-z]+)/([a-z]+)/$ $1/html/$2/$3/ [L,I]

 

#eg--->/abc/def/list_2.html--->/html/abc/def/list_2.html

RewriteRule ^(.*)/([a-z]+)/([a-z]+)/list_(.*)\.html$ $1/html/$2/$3/list_$4\.html [L,I]

 

#eg--->/abc/--->/html/abc/

RewriteRule ^(.*)/([a-z]+)/$ $1/html/$2/ [L,I]

 

#eg--->/abc/list_2.html--->/html/abc/list_2.html

RewriteRule ^(.*)/([a-z]+)/list_(.*)\.html$ $1/html/$2/list_$3\.html [L,I]

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

dedecms织梦默认的TAG标签不是很灵活。有时候我们的标签需要进行一个分类,能不能像{dede:arclist}标签的自定义属性(如:flag=c,h),这样全站调用的时候更灵活。 全站调用TAG标签方法一般是: {dede:tag row='100' sort='new' getall='1'}a target="_blank
未审核文档的TAG会显示在TAG列表页面, 固然点击进入TAG时, 相关的未审核文章不会显示出来, 这样对用户体验是很不好的. DEDECMS暂时没有提供这个功能,所以要解决这个问题, 让DEDECMS不显示未审核文档的TAG, 就要修改TAG的显示库文件 tag.lib.php。 方法一 打
我们都知道DEDECMS生成的文件夹是按天生成的,只要传了图片就会自动建立个年月日的文件,centos系统下,都是随便排序的,很难找到对应文件夹,如果要按顺序排列,要怎么操作呢? 一、文件管理器: 修改 /dede/templets/file_manage_main.html $dh = dir($inp
我们在用到织梦dedecms软件模型的时候,手动指定地址通常只能是引用其他网址或者链接,我们要实现直接选取站内的文件,这个要怎么操作呢?下面小编一步步为您解答,最终效果如下图所示: 实现教程 1、打开 /dede/templets/soft_add.htm 找到 input type=text
我们有时候需要对织梦文档的点击量进行批量维护,比如采集来的文章,点击量都为0,需要批量修改,可以用到如下方法1。 1、在数据库里运行下面的代码就可以了,文章的点击量变得随机从500到1000 UPDATE dede_archives SET click=FLOOR(500 + (RAND() * 1000))
用过dedecms的朋友都知道,织梦cms后台系统基本参数里是无法直接上传图片的,我们更换logo图只能到ftp里替换,非常的不方便,我们如果想直接在系统基本参数里上传,要怎么处理呢?在这里需要对代码进行修改,具体流程如下: 实现方法,打开/dede/templets/sy