Webmaster Gospel most complete pseudo static rules and setting methods

Source: Internet
Author: User
Keywords Rules virtual hosts virtual hosts

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Recently, a lot of webmaster come over to ask about pseudo static problem, now share under the current online various programs under IIS rules and settings method:

1, shopex4.8

Download 3.0 free Rewrite components Http://www.helicontech.com/download/isapi_rewrite/ISAPI_Rewrite3_0056_Lite.msi

After installing according to the default path, open C:\Program files\helicon\isapi_rewrite3\httpd.conf

Add the following rules:

# Helicon Isapi_rewrite Revisit file

# Version 3.1.0.56

Rewritebase/

Rewritecond%{request_filename} \. (Html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm|xml) $

Rewritecond%{request_filename}!-f

Rewritecond%{request_filename}!-d

Rewriterule ^ (. *) $ index.php?$1 [L]

[Isapi_rewrite]

# 3600 = 1 hour

Cacheclockrate 3600

Repeatlimit 32

# Protect Httpd.ini and Httpd.parse.errors files

# from accessing through HTTP

Rewriterule ^ (. *)/archiver/((Fid|tid)-[0-9]+\.html) \?* (. *) $ $1/archiver/index\.php\?$2&$4

Rewriterule ^ (. *)/forum-([0-9]+)-([0-9]+) \.html\?* (. *) $ $1/forumdisplay\.php\?fid=$2&page=$3&$4

Rewriterule ^ (. *)/thread-([0-9]+)-([0-9]+)-([0-9]+) \.html\?* (. *) $ $1/viewthread\.php\?tid=$2&extra=page\%3d$ 4&page=$3&$4

Rewriterule ^ (. *)/space-(USERNAME|UID)-(. +) \.html\?* (. *) $ $1/space\.php\?$2=$3&$4

Rewriterule ^ (. *)/tag-(. +) \.html\?* (. *) $ $1/tag\.php\?name=$2&$3

The following is required to configure IIS to load components for shopex4.8:

Open IIS, right-click your site Properties--isapi Filter--Add--Filter name is Isapi_rewrite3--executable is isapi_rewrite.dll path, such as C:\Program files\helicon\ Isapi_rewrite3\isapi_rewrite.dll

Finally reboot IIS

Of course you can put the Isapi_rewrite3 directory into the site root directory, but remember to give a users Read permissions. If it is not set, you can add a "receptacle service" Read permission for your site and directory.

Note: Some servers or VPS have permissions, after installation httpd.conf may only have everyone and system permissions, if the file can not modify the permissions to add an administrator.

2, Discuz6+ecshop

The rules are as follows:

[Isapi_rewrite]

# 3600 = 1 hour

Cacheclockrate 3600

Repeatlimit 32

# Protect Httpd.ini and Httpd.parse.errors files

# from accessing through HTTP

Rewritecond%{http_host}

rewriterule/index.html/index.php [I]

rewriterule/default.html/index.php [I]

rewriterule/feed.xml/feed.php [I]

rewriterule/category-([0-9]+). html/category\.php\?id=$1 [I]

rewriterule/category-([0-9]+)-([0-9]+). html/category\.php\?id=$1&page=$2 [I]

rewriterule/category-([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) .html/category\.php\?id=$1&page=$2&sort=$3& order=$4 [I]

rewriterule/goods-([0-9]+) \.html/goods\.php\?id=$1 [I]

rewriterule/article_cat-([0-9]+). html/article_cat\.php\?id=$1 [I]

rewriterule/article_cat-([0-9]+)-([0-9]+). html/article_cat\.php\?id=$1&page=$2 [I]

rewriterule/article_cat-([0-9]+)-([0-9]+)-(. +)-([a-za-z]+). html/article_cat\.php\?id=$1&page=$2&sort=$ 3&order=$4 [I]

rewriterule/article-([0-9]+). html/article\.php\?id=$1 [I]

Rewriterule/search-b ([0-9]+)/search\.php\?brand=$1 [I]

rewriterule/search-([0-9]+)-([^-]*)-([a-za-z]+)-K (. *) .html/search\.php\?page=$1&sort=$2&order=$3& keywords=$4 [I]

rewriterule/search-([0-9]+)-([^-]*)-([a-za-z]+)-B ([0-9]*)-K (. *)-S ([0-9]*)-L ([0-9]*). html/search\.php\?page=$1 &sort=$2&order=$3&brand=$4&keywords=$5&min_price=$6&max_price=$7 [I]

#discuz

Rewriterule ^ (. *)/archiver/((Fid|tid)-[\w\-]+\.html) \?* (. *) $ $1/archiver/index\.php\?$2&$4

Rewriterule ^ (. *)/forum-([0-9]+)-([0-9]+) \.html\?* (. *) $ $1/forumdisplay\.php\?fid=$2&page=$3&$4

Rewriterule ^ (. *)/thread-([0-9]+)-([0-9]+)-([0-9]+) \.html\?* (. *) $ $1/viewthread\.php\?tid=$2&extra=page\%3d$ 4&page=$3&$4

Rewriterule ^ (. *)/space-(USERNAME|UID)-(. +) \.html\?* (. *) $ $1/space\.php\?$2=$3&$4

Rewriterule ^ (. *)/tag-(. +) \.html\?* (. *) $ $1/tag\.php\?name=$2&$3

The IIS load component is then configured with a method similar to shopex4.8:

Open IIS, right-click your site Properties--isapi Filter--Add--Filter name is rewrite--executable is Rewrite.dll path, such as E:\home\LocalUser\rewrite\Rewrite.dll

Finally reboot IIS

3, Discuz

The rules are as follows:

[Isapi_rewrite]

# 3600 = 1 hour

Cacheclockrate 3600

Repeatlimit 32

# Protect Httpd.ini and Httpd.parse.errors files

# from accessing through HTTP

Rewriterule ^ (. *)/archiver/([a-z0-9\-]+\.html) \?* (. *) $ $1/archiver/index\.php\?$2&$3

Rewriterule ^ (. *)/forum-([0-9]+)-([0-9]+) \.html\?* (. *) $ $1/forumdisplay\.php\?fid=$2&page=$3&$4

Rewriterule ^ (. *)/thread-([0-9]+)-([0-9]+)-([0-9]+) \.html\?* (. *) $ $1/viewthread\.php\?tid=$2&extra=page\%3d$ 4&page=$3&$4

Rewriterule ^ (. *)/profile-(USERNAME|UID)-(. +) \.html\?* (. *) $ $1/viewpro\.php\?$2=$3&$4

Rewriterule ^ (. *)/space-(USERNAME|UID)-(. +) \.html\?* (. *) $ $1/space\.php\?$2=$3&$4

Open IIS, right-click your site Properties--isapi Filter--Add--Filter name is rewrite--executable is Rewrite.dll path, such as E:\home\LocalUser\rewrite\Rewrite.dll

Finally reboot IIS

4, Ecshop

The rules are as follows:

[Isapi_rewrite]

# Ecshop

rewriterule/index.html/index.php [I]

rewriterule/default.html/index.php [I]

rewriterule/ecshop/feed.xml/ecshop/feed.php [I]

#RewriteRule/ecshop/category-([0-9]+)-B ([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$/ecshop/category.php?id=$1 &brand=$2&page=$3&sort=$4&order=$5 [I]

Rewriterule ^ (. *)/category-([0-9]+)-B ([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$ $1/category\.php\?id=$2& brand=$3&page=$4&sort=$5&order=$6 [I]

#RewriteRule/ecshop/category-([0-9]+)-B ([0-9]+)-([0-9]+) (. *) \.html$/ecshop/category.php?id=$1&brand=$2 &page=$3 [I]

Rewriterule ^ (. *)/category-([0-9]+)-B ([0-9]+)-([0-9]+) (. *) \.html$ $1/category\.php\?id=$2&brand=$3&page= $ [I]

#RewriteRule/ecshop/category-([0-9]+)-B ([0-9]+) (. *) \.html$/ecshop/category.php?id=$1&brand=$2 [I]

Rewriterule ^ (. *)/category-([0-9]+)-B ([0-9]+) (. *) \.html$ $1/category\.php\?id=$2&brand=$3 [I]

#RewriteRule/ecshop/category-([0-9]+) (. *) \.html$/ecshop/category.php?id=$1 [I]

Rewriterule ^ (. *)/category-([0-9]+) (. *) \.html$ $1/category\.php\?id=$2 [I]

#RewriteRule/ecshop/goods-([0-9]+) (. *) \.html$/ecshop/goods.php?id=$1 [I]

Rewriterule ^ (. *)/goods-([0-9]+) (. *) \.html$ $1/goods\.php\?id=$2

#RewriteRule/ecshop/article_cat-([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$/ecshop/article_cat.php?id=$1 &page=$2&sort=$3&order=$4 [I]

Rewriterule ^ (. *)/article_cat-([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) (. *) \.html$ $1/article_cat\.php\?id=$2&page= $3&sort=$4&order=$5 [I]

#RewriteRule/ecshop/article_cat-([0-9]+)-([0-9]+) (. *) \.html$/ecshop/article_cat.php?id=$1&page=$2 [I]

Rewriterule ^ (. *)/article_cat-([0-9]+)-([0-9]+) (. *) \.html$ $1/article_cat\.php\?id=$2&page=$3 [I]

#RewriteRule/ecshop/article_cat-([0-9]+) (. *) \.html$/ecshop/article_cat.php?id=$1 [I]

Rewriterule ^ (. *)/article_cat-([0-9]+) (. *) \.html$ $1/article_cat\.php\?id=$2 [I]

#RewriteRule/ecshop/article-([0-9]+) (. *) \.html$/ecshop/article.php?id=$1 [I]

Rewriterule ^ (. *)/article-([0-9]+) (. *) \.html$ $1/article\.php\?id=$2 [I]

#RewriteRule/ecshop/brand-([0-9]+)-C ([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) \.html/ecshop/brand.php?id=$1&cat=$2 &page=$3&sort=$4&order=$5 [I]

Rewriterule ^ (. *)/brand-([0-9]+)-C ([0-9]+)-([0-9]+)-(. +)-([a-za-z]+) (. *) \.html $1/brand\.php\?id=$2&cat=$3 &page=$4&sort=$5&order=$6 [I]

#RewriteRule/ecshop/brand-([0-9]+)-C ([0-9]+)-([0-9]+) (. *) \.html/ecshop/brand.php?id=$1&cat=$2&page=$3 [ I]

Rewriterule ^ (. *)/brand-([0-9]+)-C ([0-9]+)-([0-9]+) (. *) \.html $1/brand\.php\?id=$2&cat=$3&page=$4 [I]

#RewriteRule/ecshop/brand-([0-9]+)-C ([0-9]+) (. *) \.html/ecshop/brand.php?id=$1&cat=$2 [I]

Rewriterule ^ (. *)/brand-([0-9]+)-C ([0-9]+) (. *) \.html $1/brand\.php\?id=$2&cat=$3 [I]

#RewriteRule/ecshop/brand-([0-9]+) (. *) \.html/ecshop/brand.php?id=$1 [I]

Rewriterule ^ (. *)/brand-([0-9]+) (. *) \.html $1/brand\.php\?id=$2 [I]

#RewriteRule/ecshop/tag-(. *) \.html/ecshop/search.php?keywords=$1 [I]

Rewriterule ^ (. *)/tag-(. *) \.html $1/search\.php\?keywords=$2 [I]

5, Dvbbs

The rules are as follows:

[Isapi_rewrite]

# 3600 = 1 hour

Cacheclockrate 3600

Repeatlimit 32

# Block external access to the Httpd.ini and httpd.parse.errors files

REWRITERULE/HTTPD (?: \. ini|\.parse\.errors). */[F,i,o]

# Block external access to the Helper ISAPI Extension

Rewriterule *\.isrwhlp/[F,i,o]

# rewrite index.asp

Rewriterule/(Your forum directory, at the root)/index_ (\d+) _ (\d+) _ (\d+) \.html/(Your forum directory, from the root directory)/index\.asp\?boardid=$1& action=$2&topicmode=$3&page=$4 [N,i]

Rewriterule/(Your forum directory, starting from the root)/index_ (\d+) _ (\d+) _ (. *) \.html/(Your forum directory, from the root directory)/index\.asp\?boardid=$1&page=$2 &action=$3 [N,i]

Rewriterule/(Your forum directory, at the root)/index_ (\d+) _ (\d+) \.html/(Your forum directory, starting at the root)/index\.asp\?boardid=$1&topicmode=$2 [ N,i]

Rewriterule/(Your forum directory, at the root)/index_ (\d+) _ (\d+) _\.html/(Your forum directory, starting at the root)/index\.asp\?boardid=$1&page=$2 [N,i]

Rewriterule/(Your forum directory, starting at the root)/index_ (\d+) __\.html/(Your forum directory, from the root)/index\.asp\?boardid=$1 [N,i]

Rewriterule/(Your forum directory, starting at the root)/index_ (\d+) \.html/(Your forum directory, from the root)/index\.asp\?boardid=$1 [N,i]

Rewriterule/(Your forum directory, starting at root)/index\.html (. *)/(Your forum directory, starting at the root)/index.asp [N,i]

# rewrite dispbbs.asp

Rewriterule/(Your forum directory, at the root)/dispbbs_ (\d+) _ (\d+) _ (\d+) _skin (\d+) _ (\d+) _ (\d+) \.html/(Your forum directory, in the root directory)/dispbbs\. asp\?boardid=$1&replyid=$2&id=$3&skin=$4&page=$5&star=$6 [N,I]

Rewriterule/(Your forum directory, at the root)/dispbbs_ (\d+) _ (\d+) _ (\d+) _skin (\d+) _ (\d+) \.html/(Your forum directory, from the root directory)/dispbbs\.asp\? boardid=$1&replyid=$2&id=$3&skin=$4&star=$5 [N,i]

Rewriterule/(Your forum directory, at the root)/dispbbs_ (\d+) _ (\d+) _ (\d+) _skin (\d+) \.html/(Your forum directory, from the root directory)/dispbbs.asp\?boardid=$ 1&replyid=$2&id=$3&skin=$4 [N,i]

Rewriterule/(Your forum directory, at the root)/dispbbs_ (\d+) _ (\d+) _ (\d+) \.html/(Your forum directory, from the root directory)/dispbbs.asp\?boardid=$1&id=$ 2&page=$3 [N,i]

Rewriterule/(Your forum directory, at the root)/dispbbs_ (\d+) _ (\d+) _ (\d+) _ (\d+) \.html/(Your forum directory, from the root directory)/dispbbs.asp\?boardid=$1 &id=$2&star=$3&page=$4 [N,i]

# rewrite dv_rss.asp

Rewriterule/(Your forum directory, at the root)/dv_rss_ (. *) _ (\d+) _ (\d+) _ (\d+) _ (\d+) _count (\d+) \.html/(Your forum directory, starting with the root directory)/dv_rss.asp\ ? s=$1&boardid=$2&id=$3&page=$4&star=$5&count=$6 [N,i]

Rewriterule/(Your forum directory, from the root)/dv_rss_ (. *) _ (\d+) _ (\d+) _ (\d+) _ (\d+) \.html/(Your forum directory, starting from the root)/dv_rss.asp\?s=$1& boardid=$2&id=$3&page=$4&star=$5 [N,i]

Rewriterule/(Your forum directory, from the root)/dv_rss_ (. *) _ (\d+) _ (\d+) _ (\d+) \.html/(Your forum directory, from the root directory)/dv_rss.asp\?s=$1&boardid =$2&id=$3&page=$4 [N,i]

Rewriterule/(Your forum directory, at the root)/dv_rss_ (. *) _ (\d+) _ (\d+) _count (\d+) \.html/(Your forum directory, from the root directory)/dv_rss.asp\?s=$1& boardid=$2&page=$3&count=$4 [N,i]

Rewriterule/(Your forum directory, from the root)/dv_rss_ (. *) _ (\d+) _ (\d+) \.html/(Your forum directory, from the root directory)/dv_rss.asp\?s=$1&boardid=$2 &PAGE=S3 [N,i]

Rewriterule/(Your forum directory, from the root)/dv_rss_ (. *) _ (\d+) \.html/(Your forum directory, from the root)/dv_rss.asp\?s=$1&boardid=$2 [N,i]

Rewriterule/(Your forum directory, starting at the root)/dv_rss_ (. *) \.html/(Your forum directory, starting at the root)/dv_rss.asp\?s=$1 [N,i]

Rewriterule/(Your forum directory, at the root)/dv_rss (. *) \.html (. *)/(Your forum directory, starting at the root)/dv_rss.asp [N,i]

Note:

1, isapi_rewrite3.0 and isapi_rewrite2.0 can not be randomly mixed. Using the DLL components and rules is not recommended in the way you install components.

2, Rewrite.dll and rules can be placed in any directory, but remember to give the directory a users Read permission.

3, shopex4.8 and other programs a little different, shopex4.8 can only use the latest rewirte3.0, the old version of the unsupported Rewritecond syntax.

4, if the use of the way to install components, may be other programs such as Discuz, Phpwind and so on, then open IIS,

Right-click the Web Site Property--isapi Filter--Deletes isapi_rewrite because it is set globally for the entire IIS and can cause conflicts with other programs

5, because shopex4.8 is currently very popular but with different rules, so the rule is best not to use with other programs, and is to use 4.8 of the site for separate ISAPI filtering settings, Shopex must also be installed in the root directory, because rewritebase/ specified in the root directory, this file cannot be configured individually for each client.

The above only gives the most commonly used shopex4.8 and discuz6 as well as Discuz+ecshop rules and configuration methods, the others are the same, mainly different rules, will also be packaged.

Because of space and limitations, shopex4.7/4.8, discuz6/nt2.5, Ecshop, Dvbbs, Phpwind, WordPress, Discuz6+ecshop, and other pseudo static rules and components have been packaged, If you need to go to our company's official website for download.

The above settings are for the rental of stand-alone servers and VPS, in the use of virtual host does not need to look, because as a service provider should be done, but at present there is no popular program to support the bar. Huaxia name Network has been in the latest management system for all models of mainframe integrated pseudo static support. If you do not understand can also be at any time to consult and provide free pre-installed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.