开启Dedecms v5.7内容管理系统伪静态的方法
发布时间:2013-05-27 15:39:41   浏览人数: 6885 次  
1、开启Dedecms!v5.7内容管理系统伪静态的方法

  后台--系统--系统基本参数--核心设置--是否使用伪静态(是/否),然后点击提交。

  

2、新建一个.htaccess文本文件,并把以下内容复制进去,保存后上传到网站文件夹根目录下
 RewriteEngine On
 RewriteCompatibility2 On
 RepeatLimit 200
 RewriteBase 
 # unsupported directive: [ISAPI_Rewrite]
 # DedeCMS

 RewriteRule ^(.*)/index.html $1/index.php [I]

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

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


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

 RewriteRule ^(.*)/post.html $1/post.php [I]
 RewriteRule ^(.*)/type.html $1/type.php [I]
 RewriteRule ^(.*)/question-([0-9]+).html $1/question.php?id=$2 [I]
 RewriteRule ^(.*)/browser-1-([0-9]+).html $1/browser.php?tid=$2 [I]
 RewriteRule ^(.*)/browser-2-([0-9]+).html $1/browser.php?tid2=$2 [I]
 RewriteRule ^(.*)/browser-1-([0-9]+)-([0-9]+).html $1/browser.php?tid=$2&page=$3 [I]
 RewriteRule ^(.*)/browser-2-([0-9]+)-([0-9]+).html $1/browser.php?tid2=$2&page=$3 [I]
 RewriteRule ^(.*)/browser-([0-9]+).html $1/browser.php?lm=$2 [I]
 RewriteRule ^(.*)/browser-1-([0-9]+)-([0-9]+).html $1/browser.php?tid=$2&lm=$3 [I]
 RewriteRule ^(.*)/browser-2-([0-9]+)-([0-9]+).html $1/browser.php?tid2=$2&lm=$3 [I]


看不明白该文挡,发信息给我们:
用户: * 密码: * (需要登陆
标题:
内容:


看不明白该文挡,发信息给我们:
用户: * 密码: * (需要登陆
标题:
内容:
查询关键词字:   
开启Dedecms v5.7内容管理系统伪静态的方法
发布时间:2013-05-27 15:39:41   浏览人数: 6885 次  

1、开启Dedecms!v5.7内容管理系统伪静态的方法

  后台--系统--系统基本参数--核心设置--是否使用伪静态(是/否),然后点击提交。

  

2、新建一个.htaccess文本文件,并把以下内容复制进去,保存后上传到网站文件夹根目录下
 RewriteEngine On
 RewriteCompatibility2 On
 RepeatLimit 200
 RewriteBase 
 # unsupported directive: [ISAPI_Rewrite]
 # DedeCMS

 RewriteRule ^(.*)/index.html $1/index.php [I]

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

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


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

 RewriteRule ^(.*)/post.html $1/post.php [I]
 RewriteRule ^(.*)/type.html $1/type.php [I]
 RewriteRule ^(.*)/question-([0-9]+).html $1/question.php?id=$2 [I]
 RewriteRule ^(.*)/browser-1-([0-9]+).html $1/browser.php?tid=$2 [I]
 RewriteRule ^(.*)/browser-2-([0-9]+).html $1/browser.php?tid2=$2 [I]
 RewriteRule ^(.*)/browser-1-([0-9]+)-([0-9]+).html $1/browser.php?tid=$2&page=$3 [I]
 RewriteRule ^(.*)/browser-2-([0-9]+)-([0-9]+).html $1/browser.php?tid2=$2&page=$3 [I]
 RewriteRule ^(.*)/browser-([0-9]+).html $1/browser.php?lm=$2 [I]
 RewriteRule ^(.*)/browser-1-([0-9]+)-([0-9]+).html $1/browser.php?tid=$2&lm=$3 [I]
 RewriteRule ^(.*)/browser-2-([0-9]+)-([0-9]+).html $1/browser.php?tid2=$2&lm=$3 [I]

以下js为测试信息
厦门域通网达信息科技有限公司    联系QQ:16250977   E-mail: info@etowang.com 
地址:厦门市湖里区禾山路266号联谊大厦5F02  本站程序界面、源代码受相关法律保护,未经授权,严禁使用

Copyright © 2015-2018 etowang.com All rights reserved. 闽ICP备14006437号
    cdn加速服务  备案系统认证