欢迎访问织梦学习网,加群!!!!!!!!!!!!!!!!
当前位置:主页 > 教程帮助 >

超全的dedecms伪静态收集

2016-03-02 dedecms教程帮助 超全,的,dedecms,伪,静态,收集,高手,可忽略,不,

高手可忽略,不定期更新

--->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 

dedededestudy.cn/' target='_blank'>织梦修改搜索分页伪静态

/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]