Win2003 Server IIS6.0 Rewrite Setup Graphics Tutorial _ Server

Source: Internet
Author: User
First download the Rewrite.rar attachment, extract to any directory on any disk, I unzipped to REWRITE-SS.
Local Downloads

Copy Code code 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
Rewritecond Host: (. +)
Rewritecond Referer: (?!) http://\1.*). *
Rewriterule. *\. (?: gif|jpg|png)/block.gif [I,o]

# Supesite Rewrite rules
# Standalone Host User
# Modify the/supesite in the following statement to your Supesite directory address, if the program is placed in the root directory, please change/supesite to/

Rewriterule ^/([0-9]+)/spacelist (. +) $/index\.php\?uid/$1/action/spacelist/type$2 [L]
Rewriterule ^/([0-9]+)/viewspace (. +) $/index\.php\?uid/$1/action/viewspace/itemid$2 [L]
Rewriterule ^/([0-9]+)/viewbbs (. +) $/index\.php\?uid/$1/action/viewbbs/tid$2 [L]
Rewriterule ^/([0-9]+)/(. *) $/index\.php\?uid/$1/$2 [L]
Rewriterule ^/([0-9]+) $/index\.php\?uid/$1 [L]
Rewriterule ^/action (. +) $/index\.php\?action$1 [L]
Rewriterule ^/category (. +) $/index\.php\?action/category/catid$1 [L]
Rewriterule ^/viewnews (. +) $/index\.php\?action/viewnews/itemid$1 [L]
Rewriterule ^/viewthread (. +) $/index\.php\?action/viewthread/tid$1 [L]
Rewriterule ^/mygroup (. +) $/index\.php\?action/mygroup/gid$1 [L]
Rewriterule ^/index (. *) $/index\.php [L]


1.jpg (47.5 KB)
2007-1-24 16:56


permission to run and read to the directory everyone for insurance purposes .
2.jpg (40.82 KB)
2007-1-24 16:56


in IIS Manager, locate the SS site and right-click the attribute .
3-1.jpg (59.96 KB)
2007-1-24 16:56


Add in ISAPI filter, rule you can name it yourself, here I fill rewrite
3.jpg (57.25 KB)
2007-1-24 16:56


after you have determined, stop and start the Web site, and in the property ISAPI filter, see the rules that are added. Green arrows appear
4.jpg (51.38 KB)
2007-1-24 16:56


Forum Refresh can see the page has been static
5.jpg (58.13 KB)
2007-1-24 16:56


Enter SS/XS background, System setup to select rewrite mode, update cache
6.jpg (84.34 KB)
2007-1-24 16:56


The page is static, but forum posts or dynamic pages
7.jpg (53.67 KB)
2007-1-24 16:56


in the SS/XS background system setup, the choice of site mode is completely static
8.jpg (63.08 KB)


See personal Space, the small question mark in the address has not been .
9.jpg (141.72 KB)
2007-1-24 16:56

Special Note: The SS in the example is installed together with the forum, SS in the root directory, the forum in the subdirectory.

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.