2核1G3M服务器88一季度

腾讯云,阿里云百度云等 折扣价→点我←

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

公共账号 管理员组

伪静态开启方法:

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



站长窝论坛版权声明 1、本帖标题:剖度小说 2.3伪静态说明【5月7号】
2、论坛网址:站长窝论坛
3、站长窝论坛的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
4、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
5、站长窝论坛一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
6、本帖由公共账号在站长窝论坛《程序综合区》版块原创发布, 转载请注明出处!
评论
最新回复 (3)
  • igel 一级用户组
    引用 2
    支持一下吧!



    中国五代领袖纪念银条http://www.sooshong.com/ssgyp888/offerdetail-5556621.html

    中国五代领袖纪念银条http://www.taojindi.com/product/10885232.html

    中国五代领袖纪念银条http://china.makepolo.com/product-detail/100223662714.html

    五代伟人纪念银条http://www.sooshong.com/ssgyp888/offerdetail-7847212.html

    五代伟人纪念银条http://www.gengfu.net/life/show-47554.html

    五代伟人纪念银条http://www.bestb2b.com/business_26200706.htm

    五代伟人纪念银条http://www.taojindi.com/product/10885232.html

    五代伟人纪念银条http://www.sandib2b.cn/supply/1130915.html

    领袖银条http://www.gengfu.net/life/show-47554.html

    领袖银条http://s.c-c.com/sale/view-40443429.html














    平阳十二生肖纪念章http://china.makepolo.com/product-detail/100226584968.html

    平阳十二生肖纪念章http://cn.china.cn/product/3179377737.html

    制作记念章厂家http://www.goodlipin.cn/

    航空母舰大铜章http://detail.cn.china.cn/provide/3181072608.html

    大铜章航母http://detail.cn.china.cn/provide/3181072608.html
    2014/04/29 23:38:49 只看Ta 回复
  • lusky 一级用户组
    引用 3
    学习一下是什么卵东西
    2015/09/16 17:48:55 只看Ta 回复
  • 草根根 一级用户组
    引用 4
    模版文件未找到或者无法访问
    2016/01/27 23:39:49 只看Ta 回复
  • 炎寒 一级用户组
    引用 5
    好长啊,没看完
    2016/04/21 11:22:13 只看Ta 回复
返回
发新帖