维博招生系统vbmcms8.0siis伪静态规则单城市版
维博招生系统vbmcms8.0siis伪静态规则单城市版
如何设置维博招生系统伪静态? 这群友最常提的问题。
但是伪静态都是根据服务器环境、域名、链接的形式配置的,没有万用的规则。
这次分享的是IIS、Apache、Nginx各一份,可以参考三份规则修改。当然环境简单的可以直接套用,通常需要修改的情况二级域名、多城市目录伪静态等,反正自己折腾吧。
1,773 2 2mymps作为国内领先的CMS系统,内置了各模块的伪静态以及动静态自由切换的功能,开始DIY你的网站SEO配置吧!
开启完上传对应的规则文件:
IIS web.config版,桌面建立个文件命名为web.config上传网站根目录:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="已导入的规则 1">
<match url="^space/([a-z0-9A-Z]+)/$" ignoreCase="false" />
<action type="Rewrite" url="space.php?user={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 2">
<match url="^store-([0-9]+)/$" ignoreCase="false" />
<action type="Rewrite" url="store.php?uid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 3">
<match url="^store-([0-9]+)/([^//]+).html$" ignoreCase="false" />
<action type="Rewrite" url="store.php?uid={R:1}&Uid={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 4">
<match url="^a/(.*)/$" ignoreCase="false" />
<action type="Rewrite" url="a/{R:1}/index.html" />
</rule>
<rule name="已导入的规则 5">
<match url="^(?!wap|admin)(.+)/$" ignoreCase="false" />
<action type="Rewrite" url="category.php?Catid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 6">
<match url="^category-([^//]+).html$" ignoreCase="false" />
<action type="Rewrite" url="category.php?CAtid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 7">
<match url="^([^//]+)/([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="information.php?id={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 8">
<match url="^information-id-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="information.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 9">
<match url="^news.html$" ignoreCase="false" />
<action type="Rewrite" url="news.php" />
</rule>
<rule name="已导入的规则 10">
<match url="^news-id-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="news.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 11">
<match url="^news-catid-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="news.php?catid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 12">
<match url="^news-catid-([0-9]+)-page-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="news.php?catid={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 13">
<match url="^corporation.html$" ignoreCase="false" />
<action type="Rewrite" url="corporation.php" />
</rule>
<rule name="已导入的规则 14">
<match url="^corporation-([^//]+).html$" ignoreCase="false" />
<action type="Rewrite" url="corporation.php?Catid={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 15">
<match url="^sitemap.html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=sitemap" appendQueryString="false" />
</rule>
<rule name="已导入的规则 16">
<match url="^aboutus.html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=aboutus" appendQueryString="false" />
</rule>
<rule name="已导入的规则 17">
<match url="^aboutus-id-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=aboutus&id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 18">
<match url="^faq.html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=faq" appendQueryString="false" />
</rule>
<rule name="已导入的规则 19">
<match url="^faq-id-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=faq&id={R:1}" appendQueryString="false" />
</rule>
<rule name="已导入的规则 20">
<match url="^friendlink.html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=friendlink" appendQueryString="false" />
</rule>
<rule name="已导入的规则 21">
<match url="^announce.html$" ignoreCase="false" negate="false" />
<action type="Rewrite" url="about.php?part=announce" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
IIS模式二(httpd.ini):
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^space/([a-z0-9A-Z]+)/$ space.php?user=$1
RewriteRule ^store-([0-9]+)/$ store.php?uid=$1
RewriteRule ^store-([0-9]+)/([^//]+).html$ store.php?uid=$1&Uid=$2
RewriteRule ^a/(.*)/$ a/$1/index.html
RewriteRule ^(?!wap|admin)(.+)/$ category.php?Catid=$1
RewriteRule ^category-([^//]+).html$ category.php?CAtid=$1
RewriteRule ^([^//]+)/([0-9]+).html$ information.php?id=$2
RewriteRule ^information-id-([0-9]+).html$ information.php?id=$1
RewriteRule ^news.html$ news.php
RewriteRule ^news-id-([0-9]+).html$ news.php?id=$1
RewriteRule ^news-catid-([0-9]+).html$ news.php?catid=$1
RewriteRule ^news-catid-([0-9]+)-page-([0-9]+).html$ news.php?catid=$1&page=$2
RewriteRule ^corporation.html$ corporation.php
RewriteRule ^corporation-([^//]+).html$ corporation.php?Catid=$1
RewriteRule ^sitemap.html$ about.php?part=sitemap
RewriteRule ^aboutus.html$ about.php?part=aboutus
RewriteRule ^aboutus-id-([0-9]+).html$ about.php?part=aboutus&id=$1
RewriteRule ^announce.html$ about.php?part=announce&id=$1
RewriteRule ^faq.html$ about.php?part=faq
RewriteRule ^faq-id-([0-9]+).html$ about.php?part=faq&id=$1
RewriteRule ^friendlink.html$ about.php?part=friendlink
如果列表里的地区打不开,找到下面规则把(.+)换成([^//]+)再测试
RewriteRule ^(?!wap|admin)(.+)/$ category.php?Catid=$1
<match url="^(?!wap|admin)(.+)/$" ignoreCase="false" />