您现在的位置是:首页 > 教程 > dedecms教程dedecms教程
dedecms织梦伪静态收集归类总结
许欣英2023-09-25 13:00:23dedecms教程已有人查阅
导读dede织梦修改搜索分页伪静态;织梦5.7问答伪静态;频道 列表 专题 在根目录下新建html文件夹 将所有的频道,列表都生成到其下,防止网站目录混乱
高手可忽略,不定期更新
--->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织梦发布内容网站为空白的原因有哪些
- dedecms织梦程序安装后无法修改栏目的解决方法
- 用dedecms织梦程序做中英双语网站制作方法
- dedecms织梦cms搜索页面中调用最新文章的实现方法
- 去除dedecms织梦后台与前台登陆验证码的方法
- dedecms织梦自定义文章排序的实现方法
- dedecms织梦终极SEO优化步骤教程
- 怎么取消dedecms织梦后台登陆验证码
- dedecms织梦模板文件不存在,无法解析文档的解决方法
- dedecms织梦留言板调用head.htm的方法
- dedecms织梦修改软件类型标签等数据默认不能修改怎么办
- dedecms织梦系统生成静态页面提示“模板文件不存在,无法解析文
随机图文
-
dedecms织梦副栏目调用问题解决方法
织梦副栏目 dede:list 和 dede:arclist 调用问题,网上都是说 dede:arclist 的,而且都不正确的。看了官方代码dedecms程序默认是没有用到typeid2副栏目 -
dedecms模板安装调试过程中遇到的问题解答
模板安装调试过程讲解近日很多论坛的朋友都是下了模板不会用,来请教我,今天凑着国庆节闲下来的时间为大家写一个稍微详细一点的教程, -
怎么修改织梦cms注册邮件的内容
很多客户在使用DEDECMS模板的启动邮件注册验证,当输入邮件服务器信息,启动自动发送注册通知的时候 -
织梦dedecms织梦网站备份及恢复方法
之前我们谈过怎样举办高效而有序的网站备份,本日就直接落实到详细的Dede网站上,由于在事变中险些都是针对行使织梦体系来开拓网站的。就织梦DedeCMS网站来说
留言与评论 (共有 条评论) |