Use isapi_rewrite to implement URL rewriting on ASP.net pseudo-static

Source: Internet
Author: User
Isapi_rewrite uses IIS's ISAPI to implement URL rewriting. isapi_rewrite is a tool called "restart" urlrewrite, then browse and find the isapi_rewrite.dll file in the root directory you just installed, and then confirm.
Go to the folder where isapi_rewrite was just installed and find httpd. INI file, and then remove "read-only" in the attribute. It is a bit difficult here and needs to be implemented using regular expressions. There are many methods. I will give an example to help you, for example, I want to set www.xx.com/web/new.aspx? Change id = 1 to www.xx.com/web/new/1.html, and add a regular expression rewriterule ^ (. *)/web/New/([0-9] +) \. html $1/web/New \. aspx \? Id = $2
Okay, so it's okay. One more thing, at first I thought New. aspx? Id = 1[Color = #000000] will automatically become Web/New/1.html,
[/Color] is actually not feasible. When writing a website, you need to change the method of passing the value.

PS: When writing a website, you need to change the method of passing the value. So far, no good method of passing the value has been found.

PS: how to use it in win2003. in IIS 6.0, the system always prompts "not loaded". Later I checked it and found that it was originally a File Permission issue. IIS 6.0 isapi_rewrite is run under the service account. After the read and write permissions of data files are granted to the service account, isapi_rewrite can finally run normally.

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.