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伪静态修改完毕。

6 Comments

  1. January 10th, 2010
    REPLY))

  2. 织梦的程序本身就是伪静态的吧~~

    Reply

    fqch reply on January 16th, 2010 12:09 pm:

    部分内容还要DIY的

    Reply

    1F

  3. January 14th, 2010
    REPLY))

  4. dedeeims 不是叫dedecms吗?

    Reply

    fqch reply on January 16th, 2010 12:10 pm:

    dedeeims针对企业网站。

    Reply

    2F

  5. January 15th, 2010
    REPLY))

  6. 这个系统是干吗的?

    Reply

    fqch reply on January 16th, 2010 12:10 pm:

    企业建站程序。

    Reply

    3F

Leave a Reply

 Name

 Mail

 Home


:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: