Generate HTML static URLs [teach you how to install Rewrite]_ Web Apps under IIS

Source: Internet
Author: User
Teach you how to install rewrite under IIS

If you want to have a server of your own,
Download here: Http://www.isapirewrite.com/download/isapi_rwl_0055.msi
Then install it, whatever you want.

Then, open Internet Information Services, right-click, Web site Properties, point ISAPI Filter tab. Add a filter, name the Rewrite, specify the path yourself Isapi_rewrite.dll (under the root of the installation), and then determine.

At last..
Start adding rewrite rules. Regular, find Isapi_rewrite directory, remove Httpd.ini read-only attribute, open edit.
I wrote for everyone, put the following 4 sentences in the Add on the line, respectively, mapped the section, plate, read posts:

Program code
Rewriterule/default (\d+) \.html/default.asp\?cateid=$1
Rewriterule/defaultpage (\d+) \.html/default.asp\?page=$1

Rewriterule/blogview (\d+) \.html/blogview.asp\?logid=$1
Rewriterule/blogview (\d+)/pages (\d+) \.html/blogview.asp\?logid=$1\&pages=$2
Rewriterule/blogview (\d+)/cateid (\d+) \.html/blogview.asp\?logid=$1\&cateid=$2

Rewriterule/index (\d+) \.html/index.asp\?cateid=$1
Rewriterule/indexpage (\d+) \.html/index.asp\?page=$1


Save ... ok ... You can also visit birds like the one above.
[This method needs to be independent to operate the server (of course, if your space business is willing to help you set up ISAPI filter is also possible)]

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.