使用SEO全能伪静态插件配合dz默认伪静态目录化伪静态规则设置教程宝塔面板伪静态规则写法
使用SEO全能伪静态插件配合dz默认伪静态目录化伪静态规则设置教程宝塔面板伪静态规则写法及遇到部署规则后访问弹出下载的解决办法:
SEO全能伪静态插件后台设置参考要点(一般保持默认设置勿动,或调整后需要重新设置更新伪静态规则):
全能伪静态插件的默认目录化规则参考:
Nginx:
伪静态规则放置路径及设置方法图文参考:
宝塔面板 —— 左侧 —— 网站 —— 点开你域名的那个:
网站前台进行测试效果,如果访问论坛首页或版块ID等遇到如下一访问就弹出下载的问题:
问题分析原因及解决办法:
[此处包含隐藏内容,如果需要查看请回复]
SEO全能伪静态插件后台设置参考要点(一般保持默认设置勿动,或调整后需要重新设置更新伪静态规则):
全能伪静态插件的默认目录化规则参考:
Nginx:
- rewrite ^([^\./]*)/(demo)(.+)$ $1/$2$3 break;
- rewrite ^([^\./]*)/bbs$ $1/forum.php break;
- rewrite ^([^\./]*)/bbs/g([0-9]+)/$ $1/forum.php?gid=$2 break;
- rewrite ^([^\./]*)/bbs/([0-9]+)/$ $1/forum.php?mod=viewthread&tid=$2 break;
- rewrite ^([^\./]*)/bbs/([0-9]+)/([0-9]+)/$ $1/forum.php?mod=viewthread&tid=$2&page=$3 break;
- rewrite ^([^\./]*)/(nextoldset|nextnewset)-([0-9]+)$ $1/forum.php?mod=redirect&goto=$2&tid=$3 break;
- rewrite ^([^\./]*)/tag/$ $1/misc.php?mod=tag break;
- rewrite ^([^\./]*)/tag/([0-9]+)/$ $1/misc.php?mod=tag&id=$2 break;
- rewrite ^([^\./]*)/tag/([0-9]+)/([0-9]+)/$ $1/misc.php?mod=tag&id=$2&type=thread&page=$3 break;
- rewrite ^([^\./]*)/btag/([0-9]+)/([0-9]+)/$ $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)/([0-9]+)/$ $1/forum.php?mod=guide&view=$2&page=$3 break;
- rewrite ^([^\./]*)/u/([0-9]+)/$ $1/home.php?mod=space&uid=$2&do=profile break;
- rewrite ^([^\./]*)/u-([^/]+)$ $1/home.php?mod=space&username=$2 break;
- rewrite ^([^\./]*)/blog/([0-9]+)/b([0-9]+)/$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 break;
- rewrite ^([^\./]*)/blog/([0-9]+)/$ $1/home.php?mod=space&uid=$2&do=blog&view=me&from=space break;
- rewrite ^([^\./]*)/blog/([0-9]+)/([0-9]+)/$ $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([0-9]+)/$ $1/group.php?gid=$2 break;
- rewrite ^([^\./]*)/group/s([0-9]+)/$ $1/group.php?sgid=$2 break;
- rewrite ^([^\./]*)/group/([0-9]+)/$ $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/([0-9]+)/$ $1/portal.php?mod=view&aid=$2 break;
- rewrite ^([^\./]*)/portal/([0-9]+)/([0-9]+)/$ $1/portal.php?mod=view&aid=$2&page=$3 break;
- rewrite ^([^\./]*)/portal-list/([0-9]+)/$ $1/portal.php?mod=list&catid=$2 break;
- rewrite ^([^\./]*)/portal-list/([0-9]+)/([0-9]+)/$ $1/portal.php?mod=list&catid=$2&page=$3 break;
- rewrite ^([^\./]*)/topicid/([0-9]+)/$ $1/portal.php?mod=topic&topicid=$2 break;
- rewrite ^([^\./]*)/topic/(\w+)/$ $1/portal.php?mod=topic&topic=$2 break;
- rewrite ^([^\./]*)/([0-9]+)/$ $1/forum.php?mod=forumdisplay&fid=$2 break;
- rewrite ^([^\./]*)/([0-9]+)/([0-9]+)/$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 break;
- rewrite ^([^\./]*)/([0-9]+)-([0-9]+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3 break;
- rewrite ^([^\./]*)/([0-9]+)-([0-9]+)/([0-9]+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4 break;
- rewrite ^([^\./]*)/([0-9]+)-s([0-9]+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3 break;
- rewrite ^([^\./]*)/([0-9]+)-s([0-9]+)/([0-9]+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&page=$4 break;
- rewrite ^([^\./]*)/([0-9]+)-([0-9]+)-s([0-9]+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&sortid=$4 break;
- rewrite ^([^\./]*)/([0-9]+)-t([0-9]+)-s([0-9]+)/([0-9]+)/$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&sortid=$4&page=$5 break;
- if (!-e $request_filename) {
- return 404;
- }
伪静态规则放置路径及设置方法图文参考:
宝塔面板 —— 左侧 —— 网站 —— 点开你域名的那个:
网站前台进行测试效果,如果访问论坛首页或版块ID等遇到如下一访问就弹出下载的问题:
问题分析原因及解决办法:
[此处包含隐藏内容,如果需要查看请回复]