Method
1. Because there is no rewrite module like PHP, you need to download the IIS rewrite module:
Http://www.jb51.net/softs/6192.html
2, extract the compressed package to any directory, (such as: C:\Rewrite). Then open Control Panel-Administrative Tools-IIS Information Services Manager-Web site-Your site
"-Properties". In the ISAPI filter entry, click Add, the filter name is filled in Rewrite, and the executable file is C:\Rewrite\Rewrite.dll;
3, and then modify the Httpd.ini file, add the appropriate filtering rules, such as:
Rewriterule ^ (. *)/([a-z0-9\-\_]+) $ $1/default\.aspx\?id=$2 [I,o]
Http://localhost/Text will be equated to http://localhost/Default.aspx?id=Text.
Rewriterule ^ (. *)/id_ ([a-z0-9\-]+) \.html$ $1/default\.aspx\?id=$2 [I,o]
Http://localhost/id_Text.html will be equated to http://localhost/Default.aspx?id=Text.
^ (. *)/html/([0-9]+)/([0-9]+) \.html$ $1/default\.aspx\?id=$2&name=$3
Http://localhost/html/001/007.html is equivalent to http://localhost/Default.aspx?id=001&name=007.
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.