Discuz and Ecshop The latest IIS rewrite pseudo static rules

Source: Internet
Author: User
Keywords Discuz

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

I got 2 little stations. A forum an online shop has always wanted to achieve pseudo static, testing many times did not succeed. Found a lot on the Internet rewrite pseudo static rules regardless of the failure of the main is ecshop. Finally to help Admin5 brother Han three help me to write a new rule:).

Now provide to everyone, hope can help more and I like the situation of brothers and sisters.

Discuz settings do not say the official some, here is the key to ecshop please set the URL in the background to rewrite the following figure:

  

Set up and clear the cache. Then configure the rewrite

First install this component requires server operation permissions

Installation Environment: Windows2003 + IIS

Installation Instructions:

1. Copy the Rewrite folder to the C:\Rewrite (here I'll test it elsewhere)

2. Add this filter on the IIS ISAPI, filter name Rewrite, executable file selection Rewrite.dll

(This step if the Web site on the entire server support, add to the Web site on IIS ==> right key properties ==>isapi filter, if only support a site, added on this site)

3. Restart IIS

4. Httpd.ini is a configuration file, and if you understand the rewrite rule, you can edit it directly

5. Write a good default rule to support discuz!6.0.0 and Ecshop

Httpd.ini the complete writing is as follows:

---------------------------------------

[Isapi_rewrite]

Cacheclockrate 3600

Repeatlimit 32

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

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$ $1/goods.php?id=$2

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

OK Restart IIS to take effect.

Hey, finally again thank Discuz, thank Ecshop, thank Admin5, and my dearest three brothers.

There are a lot of warm-hearted people who are eager to help our novice, thank you very much. You are very warm this winter.

Do you want to leave a demo at the end?

Flower think or stay, lest everyone in the heart without a bottom. Really don't want to advertise OH.

Demo Address:

1. Notebook Forum: www.bbenw.com

2. Small household electrical Appliances: www.cyxjd.cn

Flower is a novice please everyone a lot of advice, more to the point of encouragement, less brick, thank you!

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.