維博招生系統(tǒng)vbmcms8.0siis偽靜態(tài)規(guī)則單城市版
維博招生系統(tǒng)vbmcms8.0siis偽靜態(tài)規(guī)則單城市版
如何設(shè)置維博招生系統(tǒng)偽靜態(tài)? 這群友最常提的問(wèn)題。
但是偽靜態(tài)都是根據(jù)服務(wù)器環(huán)境、域名、鏈接的形式配置的,沒(méi)有萬(wàn)用的規(guī)則。
這次分享的是IIS、Apache、Nginx各一份,可以參考三份規(guī)則修改。當(dāng)然環(huán)境簡(jiǎn)單的可以直接套用,通常需要修改的情況二級(jí)域名、多城市目錄偽靜態(tài)等,反正自己折騰吧。
1,773 2 2mymps作為國(guó)內(nèi)領(lǐng)先的CMS系統(tǒng),內(nèi)置了各模塊的偽靜態(tài)以及動(dòng)靜態(tài)自由切換的功能,開(kāi)始DIY你的網(wǎng)站SEO配置吧!

開(kāi)啟完上傳對(duì)應(yīng)的規(guī)則文件:
IIS web.config版,桌面建立個(gè)文件命名為web.config上傳網(wǎng)站根目錄:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="已導(dǎo)入的規(guī)則 1">
<match url="^space/([a-z0-9A-Z]+)/$" ignoreCase="false" />
<action type="Rewrite" url="space.php?user={R:1}" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 2">
<match url="^store-([0-9]+)/$" ignoreCase="false" />
<action type="Rewrite" url="store.php?uid={R:1}" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 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="已導(dǎo)入的規(guī)則 4">
<match url="^a/(.*)/$" ignoreCase="false" />
<action type="Rewrite" url="a/{R:1}/index.html" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 5">
<match url="^(?!wap|admin)(.+)/$" ignoreCase="false" />
<action type="Rewrite" url="category.php?Catid={R:1}" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 6">
<match url="^category-([^//]+).html$" ignoreCase="false" />
<action type="Rewrite" url="category.php?CAtid={R:1}" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 7">
<match url="^([^//]+)/([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="information.php?id={R:2}" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 8">
<match url="^information-id-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="information.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 9">
<match url="^news.html$" ignoreCase="false" />
<action type="Rewrite" url="news.php" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 10">
<match url="^news-id-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="news.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 11">
<match url="^news-catid-([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="news.php?catid={R:1}" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 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="已導(dǎo)入的規(guī)則 13">
<match url="^corporation.html$" ignoreCase="false" />
<action type="Rewrite" url="corporation.php" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 14">
<match url="^corporation-([^//]+).html$" ignoreCase="false" />
<action type="Rewrite" url="corporation.php?Catid={R:1}" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 15">
<match url="^sitemap.html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=sitemap" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 16">
<match url="^aboutus.html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=aboutus" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 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="已導(dǎo)入的規(guī)則 18">
<match url="^faq.html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=faq" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 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="已導(dǎo)入的規(guī)則 20">
<match url="^friendlink.html$" ignoreCase="false" />
<action type="Rewrite" url="about.php?part=friendlink" appendQueryString="false" />
</rule>
<rule name="已導(dǎo)入的規(guī)則 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
如果列表里的地區(qū)打不開(kāi),找到下面規(guī)則把(.+)換成([^//]+)再測(cè)試
RewriteRule ^(?!wap|admin)(.+)/$ category.php?Catid=$1
<match url="^(?!wap|admin)(.+)/$" ignoreCase="false" />