伪静态开启方法:
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 专用,空间用户不要下载!
下载地址(点击数字即可下载)→:
8647