忘记密码?

一键登录

草根吧源码论坛

剖度小说 2.3伪静态说明【5月7号】

查看: 1508|回复: 3

剖度小说 2.3伪静态说明【5月7号】

[复制链接]

5760

主题

704

热度

2209

贡献

管理员

Rank: 9Rank: 9Rank: 9

DZ专员

发表于 2014-4-28 14:45:56 | 显示全部楼层 |阅读模式 | 百度  360  谷歌 
分享到:
伪静态开启方法:

1.进入Discuz! X论坛后台 — 小说 — 参数设置 — 伪静态,选择‘是’。

2.进入后台 — 工具 — 更新缓存,选择模板,数据,DIY缓存,更新缓存。

3.在网站伪静态文件中加入小说程序伪静态规则。

伪静态失败解决方法:

1.确保伪静态文件拥有读写权,伪静态程序拥有运行权。
2.在伪静态文件规则开始处加入小说伪静态规则。

如果你有任何问题与建议可以反馈给我们。



1.Apache Web Server(独立主机用户)


<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-view-([0-9]+)\.html$ $1novel.php?mod=view&novelid=$2&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-download-([0-9]+)\.html$ $1novel.php?mod=download&novelid=$2&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-chapter-([0-9]+)\.html$ $1novel.php?mod=chapter&novelid=$2&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-comment-([0-9]+)-([0-9]+)\.html$ $1novel.php?mod=comment&novelid=$2&page=$3&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-read-([0-9]+)-([0-9]+)\.html$ $1novel.php?mod=read&novelid=$2&chapterid=$3&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-cat-([0-9]+)\.html$ $1novel.php?mod=list&catid=$2&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-list-([0-9]+)\.html$ $1novel.php?mod=list&catid=$2&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])\.html$ $1novel.php?mod=list&catid=$2&full=$3&words=$4&update=$5&letter=$6&orderby=$7&show=$8&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])-([0-9]+)\.html$ $1novel.php?mod=list&catid=$2&full=$3&words=$4&update=$5&letter=$6&orderby=$7&show=$8&page=$9&%1
        RewriteCond %{QUERY_STRING} ^(.*)$
        RewriteRule ^(.*)vel-home\.html$ $1novel.php?mod=home&%1
</IfModule>




2.Apache Web Server(虚拟主机用户)


# 将 RewriteEngine 模式打开
RewriteEngine On

# 修改以下语句中的 /discuz 为您的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /discuz

# Rewrite 系统规则请勿修改
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-view-([0-9]+)\.html$ pdnovel.php?mod=view&novelid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-download-([0-9]+)\.html$ pdnovel.php?mod=download&novelid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-chapter-([0-9]+)\.html$ pdnovel.php?mod=chapter&novelid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-comment-([0-9]+)-([0-9]+)\.html$ pdnovel.php?mod=comment&novelid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-read-([0-9]+)-([0-9]+)\.html$ pdnovel.php?mod=read&novelid=$1&chapterid=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-cat-([0-9]+)\.html$ pdnovel.php?mod=list&catid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-list-([0-9]+)\.html$ pdnovel.php?mod=list&catid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])\.html$ pdnovel.php?mod=list&catid=$1&full=$2&words=$3&update=$4&letter=$5&orderby=$6&show=$7&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])-([0-9]+)\.html$ pdnovel.php?mod=list&catid=$1&full=$2&words=$3&update=$4&letter=$5&orderby=$6&show=$7&page=$8&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^novel-home\.html$ pdnovel.php?mod=home&%1





3.IIS Web Server(独立主机用户)httpd.ini


[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)vel-view-([0-9]+)\.html(\?(.*))*$ $1novel\.php\?mod=view&novelid=$2&$4
RewriteRule ^(.*)vel-download-([0-9]+)\.html(\?(.*))*$ $1novel\.php\?mod=download&novelid=$2&$4
RewriteRule ^(.*)vel-chapter-([0-9]+)\.html(\?(.*))*$ $1novel\.php\?mod=chapter&novelid=$2&$4
RewriteRule ^(.*)vel-comment-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1novel\.php\?mod=comment&novelid=$2&page=$3&$5
RewriteRule ^(.*)vel-read-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1novel\.php\?mod=read&novelid=$2&chapterid=$3&$5
RewriteRule ^(.*)vel-cat-([0-9]+)\.html(\?(.*))*$ $1novel\.php\?mod=list&catid=$2&$4
RewriteRule ^(.*)vel-list-([0-9]+)\.html(\?(.*))*$ $1novel\.php\?mod=list&catid=$2&$4
RewriteRule ^(.*)vel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])\.html(\?(.*))*$ $1novel\.php\?mod=list&catid=$2&full=$3&words=$4&update=$5&letter=$6&orderby=$7&show=$8&$10
RewriteRule ^(.*)vel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])-([0-9]+)\.html(\?(.*))*$ $1novel\.php\?mod=list&catid=$2&full=$3&words=$4&update=$5&letter=$6&orderby=$7&show=$8&page=$9&$11
RewriteRule ^(.*)vel-home\.html(\?(.*))*$ $1novel\.php\?mod=home&$3







4.IIS7 Web Server(独立主机用户)


<rewrite>
        <rules>
                <rule name="pdnovel_view">
                        <match url="^(.*/)*novel-view-([0-9]+).html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=view&novelid={R:2}&{R:3}" />
                </rule>
                <rule name="pdnovel_download">
                        <match url="^(.*/)*novel-download-([0-9]+).html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=download&novelid={R:2}&{R:3}" />
                </rule>
                <rule name="pdnovel_chapter">
                        <match url="^(.*/)*novel-chapter-([0-9]+).html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=chapter&novelid={R:2}&{R:3}" />
                </rule>
                <rule name="pdnovel_comment">
                        <match url="^(.*/)*novel-comment-([0-9]+)-([0-9]+).html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=comment&novelid={R:2}&page={R:3}&{R:4}" />
                </rule>
                <rule name="pdnovel_read">
                        <match url="^(.*/)*novel-read-([0-9]+)-([0-9]+).html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=read&novelid={R:2}&chapterid={R:3}&{R:4}" />
                </rule>
                <rule name="pdnovel_cat">
                        <match url="^(.*/)*novel-cat-([0-9]+).html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=list&catid={R:2}&{R:3}" />
                </rule>
                <rule name="pdnovel_list_cat">
                        <match url="^(.*/)*novel-list-([0-9]+).html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=list&catid={R:2}&{R:3}" />
                </rule>
                <rule name="pdnovel_list_np">
                        <match url="^(.*/)*novel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1]).html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=list&catid={R:2}&full={R:3}&words={R:4}&update={R:5}&letter={R:6}&orderby={R:7}&show={R:8}&{R:9}" />
                </rule>
                <rule name="pdnovel_list_p">
                        <match url="^(.*/)*novel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])-([0-9]+).html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=list&catid={R:2}&full={R:3}&words={R:4}&update={R:5}&letter={R:6}&orderby={R:7}&show={R:8}&page={R:9}&{R:10}" />
                </rule>
                <rule name="pdnovel_home">
                        <match url="^(.*/)*novel-home.html\?*(.*)[        DISCUZ_CODE_0        ]quot; />
                        <action type="Rewrite" url="{R:1}novel.php\?mod=home&{R:2}" />
                </rule>
        </rules>
</rewrite>






5.Zeus Web Server


match URL into $ with ^(.*)vel-view-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=view&novelid=$2&$3
endif
match URL into $ with ^(.*)vel-download-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=download&novelid=$2&$3
endif
match URL into $ with ^(.*)vel-chapter-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=chapter&novelid=$2&$3
endif
match URL into $ with ^(.*)vel-comment-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=comment&novelid=$2&page=$3&$4
endif
match URL into $ with ^(.*)vel-read-([0-9]+)-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=read&novelid=$2&chapterid=$3&$4
endif
match URL into $ with ^(.*)vel-cat-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=list&catid=$2&$3
endif
match URL into $ with ^(.*)vel-list-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=list&catid=$2&$3
endif
match URL into $ with ^(.*)vel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=list&catid=$2&full=$3&words=$4&update=$5&letter=$6&orderby=$7&show=$8&$9
endif
match URL into $ with ^(.*)vel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])-([0-9]+)\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=list&catid=$2&full=$3&words=$4&update=$5&letter=$6&orderby=$7&show=$8&page=$9&$10
endif
match URL into $ with ^(.*)vel-home\.html\?*(.*)$
if matched then
        set URL = $1novel.php?mod=home&$2
endif



6.Nginx Web Server


rewrite ^([^\.]*)vel-view-([0-9]+)\.html$ $1novel.php?mod=view&novelid=$2 last;
rewrite ^([^\.]*)vel-download-([0-9]+)\.html$ $1novel.php?mod=download&novelid=$2 last;
rewrite ^([^\.]*)vel-chapter-([0-9]+)\.html$ $1novel.php?mod=chapter&novelid=$2 last;
rewrite ^([^\.]*)vel-comment-([0-9]+)-([0-9]+)\.html$ $1novel.php?mod=comment&novelid=$2&page=$3 last;
rewrite ^([^\.]*)vel-read-([0-9]+)-([0-9]+)\.html$ $1novel.php?mod=read&novelid=$2&chapterid=$3 last;
rewrite ^([^\.]*)vel-cat-([0-9]+)\.html$ $1novel.php?mod=list&catid=$2 last;
rewrite ^([^\.]*)vel-list-([0-9]+)\.html$ $1novel.php?mod=list&catid=$2 last;
rewrite ^([^\.]*)vel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])\.html$ $1novel.php?mod=list&catid=$2&full=$3&words=$4&update=$5&letter=$6&orderby=$7&show=$8 last;
rewrite ^([^\.]*)vel-list-([0-9]+)-([0-2])-([0-5])-([0-6])-([a-z]|[0-1])-([0-9]+)-([0-1])-([0-9]+)\.html$ $1novel.php?mod=list&catid=$2&full=$3&words=$4&update=$5&letter=$6&orderby=$7&show=$8&page=$9 last;
rewrite ^([^\.]*)vel-home\.html$ $1novel.php?mod=home last;
if (!-e $request_filename) {
        return 404;
}

下载解压到关关的目录,覆盖原来的文件。

覆盖之后需要关闭采集器,然后在打开采集,否则不会生效!

关关采集器是服务器或者VPS 专用,空间用户不要下载!


草根吧 剖度小说 2.3伪静态说明【5月7号】  精品教程 zip NovelSpider.Local.Jieqi.zip (11.11 KB, 下载次数: 26)

帖子地址: 

本文来源于草根吧源码论坛 www.caogen8.co,欢迎大家下载。
如果您没有贡献需要充值,可以直接在线充值,点击充值
如果你需要加入本站赞助VIP会员,可以直接在线开通,点击开通
如果找不到您要的资源,请搜索一下,点击搜索
回复

举报

0

主题

26

热度

0

贡献

步入草根

Rank: 1

发表于 2015-9-16 17:48:55 | 显示全部楼层
学习一下是什么卵东西

0

主题

8

热度

0

贡献

步入草根

Rank: 1

发表于 2016-4-21 11:22:13 | 显示全部楼层
好长啊,没看完

发表回复

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆 用百度帐号登录 一键登录:

本版积分规则

收藏帖子 返回列表 搜索
快速回复 返回顶部 返回列表