云水论坛

标题: [经验] 为什么DISCUZ的官方网站的帖子是静态HTML。。 [打印本页]

作者: 森森    时间: 2010-4-2 16:11
标题: [经验] 为什么DISCUZ的官方网站的帖子是静态HTML。。
 

为什么的DISCUZ官方网站的帖子是静态HTML网页。。而我下载的DISCUZ网站 。。调试正常后的。。帖子是aspx扩展名动态网页

 

回复:为什么DISCUZ的官方网站的帖子是静态HTML。。
因为官方用了伪静态url,而我们一般的主机,即虚拟主机一般是只支持aspx伪静态URL的。

 

回复: 为什么DISCUZ的官方网站的帖子是静态HTML。。

如果你是自己的服务器安装 ISAPI_Rewrite把地址重写就成了,防盗链也用的是重写地址的方式,DiscuzNT的正则表达式如下
  1. RewriteRule ^/userinfo-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /userinfo.aspx?userid=$1
  2.     RewriteRule ^/showforum-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /showforum.aspx?forumid=$1
  3.     RewriteRule ^/showtopic-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /showtopic.aspx?topicid=$1
  4.     RewriteRule ^/showforum-([0-9]+)-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /showforum.aspx?forumid=$1&page=$2
  5.     RewriteRule ^/showtopic-([0-9]+)-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /showtopic.aspx?topicid=$1&page=$2
  6.     RewriteRule ^/archiver/showforum-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /archiver/showforum.aspx?forumid=$1
  7.     RewriteRule ^/archiver/showtopic-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /archiver/showtopic.aspx?topicid=$1
  8.     RewriteRule ^/archiver/showtopic-([0-9]+)-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /archiver/showtopic.aspx?topicid=$1&page=$2
  9.     RewriteRule ^/archiver/showforum-([0-9]+)-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /archiver/showforum.aspx?forumid=$1&page=$2
  10.     RewriteRule ^/tools/rss-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /tools/rss-$1.aspx
  11.     RewriteRule ^/tools/spacerss-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /tools/rss.aspx?uid=$1&type=space
  12.     RewriteRule ^/tools/photorss-([0-9]+)\.html[    DISCUZ_CODE_2    ]nbsp; /tools/rss.aspx?uid=$1&type=photo
  13.     RewriteRule space\/((\w|\s|-)+)((\/?))?[    DISCUZ_CODE_2    ]nbsp; /space/?user=$1
  14.     RewriteRule space\/((\w|\s|-)+)((\/?))?\?((.*)+)[    DISCUZ_CODE_2    ]nbsp; /space/?user=$1&$5
复制代码
然后再跟后台把伪静态的扩展名改成  点儿html 如果是虚拟主机就不用搞了,因为一般都不支持。

作者: 森森    时间: 2010-4-2 16:12

 

http://faq.comsenz.com/viewnews-790

 

 http://www.baidu.com/s?wd=Discuz%21%20%B9%D9%B7%BD%20%BE%B2%CC%AC&pn=10&tn=sitehao123

 

 






欢迎光临 云水论坛 (http://www.yunshui.net/) Powered by Discuz! X2.5