全球主机交流论坛

标题: 关于discuz 大板块伪静态问题,谁懂 [打印本页]

作者: somin    时间: 2012-1-15 16:52
标题: 关于discuz 大板块伪静态问题,谁懂
DZ论坛早已坠落了。

回答的都是啥的,还是loc技术人多··谁懂啊,?

还有如何将Apache的伪静态代码转换成WINNT iis的。
作者: oldghost    时间: 2012-1-15 16:55
标题: 【IIS Web Server(独立主机用户)】
本帖最后由 oldghost 于 2012-1-15 16:56 编辑

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $1/portal\.php\?mod=topic&topic=$2&$4
RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5
RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$6
RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5
RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/home\.php\?mod=space&uid=$2&do=blog&id=$3&$5
RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html(\?(.*))*$ $1/index\.php\?action=$2&value=$3&$5
作者: 今何在    时间: 2012-1-15 16:56
晕死  他们官方就有
作者: oldghost    时间: 2012-1-15 16:56
标题: 【IIS7 Web Server(独立主机用户)】
本帖最后由 oldghost 于 2012-1-15 16:57 编辑

<rewrite>
        <rules>
                <rule name="portal_topic">
                        <match url="^(.*/)*topic-(.+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/portal.php\?mod=topic&amp;topic={R:2}&amp;{R:3}" />
                </rule>
                <rule name="portal_article">
                        <match url="^(.*/)*article-([0-9]+)-([0-9]+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/portal.php\?mod=view&amp;aid={R:2}&amp;page={R:3}&amp;{R:4}" />
                </rule>
                <rule name="forum_forumdisplay">
                        <match url="^(.*/)*forum-(\w+)-([0-9]+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
                </rule>
                <rule name="forum_viewthread">
                        <match url="^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/forum.php\?mod=viewthread&amp;tid={R:2}&amp;extra=page%3D{R:4}&amp;page={R:3}&amp;{R:5}" />
                </rule>
                <rule name="group_group">
                        <match url="^(.*/)*group-([0-9]+)-([0-9]+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/forum.php\?mod=group&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
                </rule>
                <rule name="home_space">
                        <match url="^(.*/)*space-(username|uid)-(.+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/home.php\?mod=space&amp;{R:2}={R:3}&amp;{R:4}" />
                </rule>
                <rule name="home_blog">
                        <match url="^(.*/)*blog-([0-9]+)-([0-9]+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/home.php\?mod=space&amp;uid={R:2}&amp;do=blog&amp;id={R:3}&amp;{R:4}" />
                </rule>
                <rule name="forum_archiver">
                        <match url="^(.*/)*(fid|tid)-([0-9]+).html\?*(.*)$" />
                        <action type="Rewrite" url="{R:1}/index.php\?action={R:2}&amp;value={R:3}&amp;{R:4}" />
                </rule>
        </rules>
</rewrite>
Zeus Web Server
match URL into $ with ^(.*)/topic-(.+)\.html\?*(.*)$
if matched then
        set URL = $1/portal.php?mod=topic&topic=$2&$3
endif
match URL into $ with ^(.*)/article-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1/portal.php?mod=view&aid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/forum-(\w+)-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1/forum.php?mod=forumdisplay&fid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1/forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$5
endif
match URL into $ with ^(.*)/group-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1/forum.php?mod=group&fid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$
if matched then
        set URL = $1/home.php?mod=space&$2=$3&$4
endif
match URL into $ with ^(.*)/blog-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1/home.php?mod=space&uid=$2&do=blog&id=$3&$4
endif
match URL into $ with ^(.*)/(fid|tid)-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1/index.php?action=$2&value=$3&$4
endif

作者: 安迪    时间: 2012-1-15 16:56
顶楼上
作者: sowahkhoo    时间: 2012-1-15 16:56
提示: 作者被禁止或删除 内容自动屏蔽
作者: wdlth    时间: 2012-1-15 16:57
本帖最后由 wdlth 于 2012-1-15 16:58 编辑

找Helicon 3.1的破解版,可以支持htaccess
作者: tobeychan    时间: 2012-1-15 16:59
随便度娘下
作者: 安心    时间: 2012-1-15 17:02
X2后台可以看到伪静态规则的。
作者: somin    时间: 2012-1-15 17:04
别给官方的,垃圾,很多不完善的。
作者: somin    时间: 2012-1-15 17:05
安心 发表于 2012-1-15 17:02
X2后台可以看到伪静态规则的。

就是不完善的 所以才发帖问。
作者: 阳光淡蓝    时间: 2012-1-15 17:06
只需两步,看这个教程
http://www.gutengseo.com/685.html
作者: Satoshi    时间: 2012-1-15 17:17
大板块伪静态?后台自带那个iis的不是好用的吗
作者: somin    时间: 2012-1-15 22:46
Satoshi 发表于 2012-1-15 17:17
大板块伪静态?后台自带那个iis的不是好用的吗

那个不为的。
问过官方的盆友,不行。暂时没这个

作者: Satoshi    时间: 2012-1-15 22:52
啥叫大版块?什么版块进去不都可以伪的吗?
作者: somin    时间: 2012-1-15 22:57
Satoshi 发表于 2012-1-15 22:52
啥叫大版块?什么版块进去不都可以伪的吗?

论坛›主机综合交流›美国VPS综合讨论›
主机综合交流就属于大板块
作者: shy9000    时间: 2012-1-15 22:57
本帖最后由 shy9000 于 2012-1-15 23:04 编辑

没听懂
PS:  DZ论坛和LOC都已经堕落的说,现在很少翻坛子了,都是到人博客里找精品文了.
作者: Satoshi    时间: 2012-1-15 22:59
somin 发表于 2012-1-15 22:57
论坛›主机综合交流›美国VPS综合讨论›
主机综合交流就属于大板块

那个不是可以吗- -貌似自带的就好用的吧,反正我用的时候没发现什么问题
作者: minkdog.com    时间: 2012-1-15 23:01
楼下知道
作者: 火雪心    时间: 2012-1-15 23:13
官方的不能用??




欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/) Powered by Discuz! X3.4