使用SEO全能伪静态插件配合dz默认伪静态目录化伪静态规则设置教程宝塔面板伪静态规则写法
使用SEO全能伪静态插件配合dz默认伪静态目录化伪静态规则设置教程宝塔面板伪静态规则写法及遇到部署规则后访问弹出下载的解决办法:SEO全能伪静态插件后台设置参考要点(一般保持默认设置勿动,或调整后需要重新设置更新伪静态规则):
全能伪静态插件的默认目录化规则参考:
Nginx:
rewrite ^([^\./]*)/(demo)(.+)$ $1/$2$3 break;
rewrite ^([^\./]*)/bbs$ $1/forum.php break;
rewrite ^([^\./]*)/bbs/g(+)/$ $1/forum.php?gid=$2 break;
rewrite ^([^\./]*)/bbs/(+)/$ $1/forum.php?mod=viewthread&tid=$2 break;
rewrite ^([^\./]*)/bbs/(+)/(+)/$ $1/forum.php?mod=viewthread&tid=$2&page=$3 break;
rewrite ^([^\./]*)/(nextoldset|nextnewset)-(+)$ $1/forum.php?mod=redirect&goto=$2&tid=$3 break;
rewrite ^([^\./]*)/tag/$ $1/misc.php?mod=tag break;
rewrite ^([^\./]*)/tag/(+)/$ $1/misc.php?mod=tag&id=$2 break;
rewrite ^([^\./]*)/tag/(+)/(+)/$ $1/misc.php?mod=tag&id=$2&type=thread&page=$3 break;
rewrite ^([^\./]*)/btag/(+)/(+)/$ $1/misc.php?mod=tag&id=$2&type=blog&page=$3 break;
rewrite ^([^\./]*)/guide/$ $1/forum.php?mod=guide break;
rewrite ^([^\./]*)/guide/(hot|digest|new|newthread|sofa|my)/$ $1/forum.php?mod=guide&view=$2 break;
rewrite ^([^\./]*)/guide/(hot|digest|new|newthread|sofa|my)/(+)/$ $1/forum.php?mod=guide&view=$2&page=$3 break;
rewrite ^([^\./]*)/u/(+)/$ $1/home.php?mod=space&uid=$2&do=profile break;
rewrite ^([^\./]*)/u-([^/]+)$ $1/home.php?mod=space&username=$2 break;
rewrite ^([^\./]*)/blog/(+)/b(+)/$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 break;
rewrite ^([^\./]*)/blog/(+)/$ $1/home.php?mod=space&uid=$2&do=blog&view=me&from=space break;
rewrite ^([^\./]*)/blog/(+)/(+)/$ $1/home.php?mod=space&uid=$2&do=blog&view=me&from=space&page=$3 break;
rewrite ^([^\./]*)/plugin/(\w+)/$ $1/plugin.php?id=$2 break;
rewrite ^([^\./]*)/plugin/(\w+)/(\w+)/$ $1/plugin.php?id=$2:$3 break;
rewrite ^([^\./]*)/group/$ $1/group.php break;
rewrite ^([^\./]*)/group/g(+)/$ $1/group.php?gid=$2 break;
rewrite ^([^\./]*)/group/s(+)/$ $1/group.php?sgid=$2 break;
rewrite ^([^\./]*)/group/(+)/$ $1/forum.php?mod=group&fid=$2 break;
rewrite ^([^\./]*)/collection/$ $1/forum.php?mod=collection break;
rewrite ^([^\./]*)/collection/(\d+)/$ $1/forum.php?mod=collection&action=view&ctid=$2 break;
rewrite ^([^\./]*)/portal/$ $1/portal.php break;
rewrite ^([^\./]*)/portal/(+)/$ $1/portal.php?mod=view&aid=$2 break;
rewrite ^([^\./]*)/portal/(+)/(+)/$ $1/portal.php?mod=view&aid=$2&page=$3 break;
rewrite ^([^\./]*)/portal-list/(+)/$ $1/portal.php?mod=list&catid=$2 break;
rewrite ^([^\./]*)/portal-list/(+)/(+)/$ $1/portal.php?mod=list&catid=$2&page=$3 break;
rewrite ^([^\./]*)/topicid/(+)/$ $1/portal.php?mod=topic&topicid=$2 break;
rewrite ^([^\./]*)/topic/(\w+)/$ $1/portal.php?mod=topic&topic=$2 break;
rewrite ^([^\./]*)/(+)/$ $1/forum.php?mod=forumdisplay&fid=$2 break;
rewrite ^([^\./]*)/(+)/(+)/$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 break;
rewrite ^([^\./]*)/(+)-(+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3 break;
rewrite ^([^\./]*)/(+)-(+)/(+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4 break;
rewrite ^([^\./]*)/(+)-s(+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3 break;
rewrite ^([^\./]*)/(+)-s(+)/(+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&page=$4 break;
rewrite ^([^\./]*)/(+)-(+)-s(+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&sortid=$4 break;
rewrite ^([^\./]*)/(+)-t(+)-s(+)/(+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&sortid=$4&page=$5 break;
if (!-e $request_filename) {
return 404;
}
伪静态规则放置路径及设置方法图文参考:
宝塔面板 —— 左侧 —— 网站 —— 点开你域名的那个:
网站前台进行测试效果,如果访问论坛首页或版块ID等遇到如下一访问就弹出下载的问题:
问题分析原因及解决办法:
**** Hidden Message *****
如果以上操作还是不行:
**** Hidden Message *****
楼主发贴辛苦了,谢谢楼主分享!
这东西我收了!谢谢楼主!dz插件网真好! 支持一下 设置不了
看看看看 楼主发贴辛苦了,谢谢楼主分享!
这东西我收了!谢谢楼主!dz插件网真好! 这个必须要看一看的呢 消灭回复可见 看看啥样子的
这东西我收了!谢谢楼主!
页:
[1]
2