Date: January 9th, 2010
Cate: Diary
Tags:

dedeeims 伪静态修改方法

dedeeims 最近有在研究dedeeims,需要后期修改的地方很少,应用在企业网站相当的优秀并绰绰有余。

第一个是伪静态修改。include/channelunit.func.php中的

//动态文章
return "/view-".$aid.’-1.html’;

//动态栏目
$reurl = "/list-".$typeid.".html";

新增.htaccess内容为:

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^list-([0-9]+)\.html$ /plus/list.php?tid=$1
RewriteRule ^list-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3
RewriteRule ^view-([0-9]+)-1\.html$ /plus/view.php?arcID=$1
RewriteRule ^view-([0-9]+)-([0-9]+)\.html$ /plus/view.php?aid=$1&pageno=$2
RewriteRule ^(.*)/tag/(.+)/$ $1/tag\.php\?/$2/
RewriteRule ^(.*)/tag/(.+)\.html$ $1/tag\.php\?/$2/

</IfModule>

ErrorDocument 404 /404.htm

其中包括标签和插件伪静态,但用不上,dedeeims伪静态修改完毕。

Leave a Reply

You must be logged in to post a comment.