创意电子
标题:
SEO智能伪静态 Discuz伪静态高级版 3.7.30
[打印本页]
作者:
创意电子
时间:
2022-7-20 19:59
标题:
SEO智能伪静态 Discuz伪静态高级版 3.7.30
资源名称:
下载次数:
2
文件大小:
记录
购买VIP
充值创意币
运营教程
免费赚创意币
安全检测,请放心下载
上传
点击文件名下载附件
SEO智能伪静态 .htaccess(Apache)
# 将 RewriteEngine 模式打开
RewriteEngine On
# RewriteBase 后边为论坛目录,插件自动识别,如果识别错误请自行修改为你论坛的目录
# 如 www.xxx.com/bbs,对应的目录就是/bbs,如果程序放在根目录中,使用 RewriteBase /
RewriteBase /
# Rewrite 系统规则请勿修改
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^f-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^f-(\w+)\.html$ forum.php?mod=forumdisplay&fid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^t-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^t-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^g-([0-9]+)\.html$ forum.php?gid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^f-(\w+)-t([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=typeid&typeid=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^f-(\w+)-t([0-9]+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=typeid&typeid=$2&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^f-(\w+)-s([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=sortid&sortid=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^f-(\w+)-s([0-9]+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=sortid&sortid=$2&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^f-(\w+)-t([0-9]+)-s([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=sortid&sortid=$3&typeid=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^f-(\w+)-t([0-9]+)-s([0-9]+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&filter=sortid&sortid=$3&typeid=$2&page=$4&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tag-(thread|blog)-([0-9]+)-([0-9]+)\.html$ misc.php?mod=tag&id=$2&type=$1&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tag-([0-9]+)\.html$ misc.php?mod=tag&id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tag\.html$ misc.php?mod=tag&%1
复制代码
addon_seo_rewrite_.htaccess(Nginx)
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/f-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/f-(\w+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2 last;
rewrite ^([^\.]*)/t-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&page=$3 last;
rewrite ^([^\.]*)/t-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2 last;
rewrite ^([^\.]*)/g-([0-9]+)\.html$ $1/forum.php?gid=$2 last;
rewrite ^([^\.]*)/f-(\w+)-t([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3 last;
rewrite ^([^\.]*)/f-(\w+)-t([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4 last;
rewrite ^([^\.]*)/f-(\w+)-s([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3 last;
rewrite ^([^\.]*)/f-(\w+)-s([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&page=$4 last;
rewrite ^([^\.]*)/f-(\w+)-t([0-9]+)-s([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$4&typeid=$3 last;
rewrite ^([^\.]*)/f-(\w+)-t([0-9]+)-s([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$4&typeid=$3&page=$4 last;
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;
rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;
rewrite ^([^\.]*)/tag-(thread|blog)-([0-9]+)-([0-9]+)\.html$ $1/misc.php?mod=tag&id=$3&type=$2&page=$4 last;
rewrite ^([^\.]*)/tag-([0-9]+)\.html$ $1/misc.php?mod=tag&id=$2 last;
rewrite ^([^\.]*)/tag\.html$ $1/misc.php?mod=tag last;
if (!-e $request_filename) {
return 404;
}
复制代码
addon_seo_rewrite_web.config(IIS7以上)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="portal_topic">
<match url="^(.*/)*topic-(.+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/portal.php\?mod=topic&topic={R:2}&{R:3}" />
</rule>
<rule name="portal_article">
<match url="^(.*/)*article-([0-9]+)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/portal.php\?mod=view&aid={R:2}&page={R:3}&{R:4}" />
</rule>
<rule name="forum_forumdisplay2">
<match url="^(.*/)*f-(\w+)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&page={R:3}&{R:4}" />
</rule>
<rule name="forum_forumdisplay">
<match url="^(.*/)*f-(\w+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&{R:3}" />
</rule>
<rule name="forum_viewthread2">
<match url="^(.*/)*t-([0-9]+)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=viewthread&tid={R:2}&page={R:3}&{R:4}" />
</rule>
<rule name="forum_viewthread">
<match url="^(.*/)*t-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=viewthread&tid={R:2}&{R:3}" />
</rule>
<rule name="forum_forumdisplay_gid">
<match url="^(.*/)*g-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?gid={R:2}&{R:3}" />
</rule>
<rule name="forum_forumdisplay_type">
<match url="^(.*/)*f-(\w+)-t([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&filter=typeid&typeid={R:3}&{R:4}" />
</rule>
<rule name="forum_forumdisplay_type2">
<match url="^(.*/)*f-(\w+)-t([0-9]+)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&filter=typeid&typeid={R:3}&page={R:4}&{R:5}" />
</rule>
<rule name="forum_forumdisplay_sort">
<match url="^(.*/)*f-(\w+)-s([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&filter=sortid&sortid={R:3}&{R:4}" />
</rule>
<rule name="forum_forumdisplay_sort2">
<match url="^(.*/)*f-(\w+)-s([0-9]+)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&filter=sortid&sortid={R:3}&page={R:4}&{R:5}" />
</rule>
<rule name="forum_forumdisplay_type_sort">
<match url="^(.*/)*f-(\w+)-t([0-9]+)-s([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&filter=sortid&sortid={R:4}&typeid={R:3}&{R:5}" />
</rule>
<rule name="forum_forumdisplay_type_sort2">
<match url="^(.*/)*f-(\w+)-t([0-9]+)-s([0-9]+)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&fid={R:2}&filter=sortid&sortid={R:4}&typeid={R:3}&page=$4&{R:6}" />
</rule>
<rule name="group_group">
<match url="^(.*/)*group-([0-9]+)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/forum.php\?mod=group&fid={R:2}&page={R:3}&{R:4}" />
</rule>
<rule name="home_space">
<match url="^(.*/)*space-(username|uid)-(.+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/home.php\?mod=space&{R:2}={R:3}&{R:4}" />
</rule>
<rule name="home_blog">
<match url="^(.*/)*blog-([0-9]+)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/home.php\?mod=space&uid={R:2}&do=blog&id={R:3}&{R:4}" />
</rule>
<rule name="forum_archiver">
<match url="^(.*/)*(fid|tid)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/index.php\?action={R:2}&value={R:3}&{R:4}" />
</rule>
<rule name="forum_tag_list">
<match url="^(.*/)*tag-(thread|blog)-([0-9]+)-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/misc.php\?mod=tag&id={R:3}&type={R:2}&page={R:4}&{R:5}" />
</rule>
<rule name="forum_tag_view">
<match url="^(.*/)*tag-([0-9]+).html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/misc.php\?mod=tag&id={R:2}&{R:3}" />
</rule>
<rule name="forum_tag_index">
<match url="^(.*/)*tag.html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/misc.php\?mod=tag&{R:2}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
复制代码
资源名称:
下载次数:
0
文件大小:
记录
购买VIP
充值创意币
运营教程
免费赚创意币
安全检测,请放心下载
上传
点击文件名下载附件
资源名称:
下载次数:
0
文件大小:
记录
购买VIP
充值创意币
运营教程
免费赚创意币
安全检测,请放心下载
上传
点击文件名下载附件
欢迎光临 创意电子 (https://wxcydz.cc/)
Powered by Discuz! X3.4