您现在的位置是:首页 > 教程 > 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中万能标签loop不能输入URL的修改方法
本文实例讲述了织梦Dedecms中万能标签loop不能输入URL的解决方法。万能标签loop是可以随意的在dedecms中调用任意表的数据标签,所以叫万能 -
DedeCMS用SQL快速批量删除关键字TAG标签的方法
dedecms怎样批量删除TAG标签呢?在dedecms的后台的核心—批量维护—TAG标签管理里我们可以删除TAG标签,但是这样如 -
dede织梦实现自动审核织梦dedecms会员发表新文章修改方法
今天看到一篇通过修改源码让DedeCms实现自动审核会员发布的文章,方便有时站长不在电脑前,并且能够自动更新网站的解决方法,特来跟大家分享一下。 -
火车头DedeCMS5.6免登陆火车头发布接口
DedeCMS5.6免登陆文章发布接口使用说明一、功能特性1、免登陆,用户可以设置验证密码来防止未授权的访问.2、多用户随机发布文章.3、可以达到和手
留言与评论 (共有 条评论) |