維博招生系統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" />