位置:SEO博客 > SEO > Discuz X2.0的rss地址列表静态化

Discuz X2.0的rss地址列表静态化

版本:Discuz X2.0
当网站开启了伪静态之后,rss地址列表并不是伪静态的地址,而是动态的,这里把动态的改成伪静态的地址
1. 门户
在source/module/portal/portal_rss.php文件中,找到以下代码:
$_G[siteurl]portal.php?mod=view&aid=$article[aid]\n
修改为:
$_G[siteurl]article-$article[aid]-1.html\n

2.论坛
在source/module/forum/forum_rss.php文件中找到以下代码:
$_G[siteurl]forum.php?mod=viewthread&tid=$thread[tid]\n
修改为:
$_G[siteurl]thread-$thread[tid]-1-1.html\n

3.空间
在source/module/home/home_rss.php文件中找到:
$_G[siteurl]home.php?mod=space&uid=$value[uid]&do=blog&id=$value[blogid]\n
修改为:
$_G[siteurl]blog-$value[uid]-$value[blogid].html\n

本站文章除注明转载外,均为本站原创
转载请注明:文章转载自:郑义文SEO博客
本文标题:Discuz X2.0的rss地址列表静态化
本文地址:http://www.zhengyiwen.com/discuz-x2-rss.html

10 Comments

  1. Posted 2011年12月14日 at 13:34 | Permalink

    这些不好懂。

    [回复]

  2. Posted 2011年12月15日 at 16:12 | Permalink

    rss地址列表并不是伪静态的地址

    [回复]

  3. Posted 2011年12月21日 at 13:14 | Permalink

    这些代码看不太懂啊,新学习管理网站这方面的 感觉好难 唉

    [回复]

  4. Posted 2011年12月21日 at 17:38 | Permalink

    好东西。收了。。。。

    [回复]

  5. Posted 2011年12月25日 at 19:28 | Permalink

    这个要学习下,没搞过。

    [回复]

  6. Posted 2011年12月30日 at 13:37 | Permalink

    这个不好懂哦。

    [回复]

  7. Posted 2011年12月31日 at 17:10 | Permalink

    不懂这个

    [回复]

  8. Posted 2012年01月30日 at 10:16 | Permalink

    学习了,O(∩_∩)O哈哈~

    [回复]

  9. Posted 2012年01月31日 at 15:11 | Permalink

    过来学习学习来了啊

    [回复]

  10. Posted 2012年02月3日 at 12:17 | Permalink

    启用RSS,然后把网站feed托管到feedsky,减轻网站负担。

    [回复]

Post a Comment

Your email is never shared. Required fields are marked *

*
*