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. decompress the compressed package to any directory (for example, c: \ rewrite ). Then open "Control Panel"-"Administrative Tools"-"IIS Information Service Manager"-"website"-"Your Site
"-" Attribute ". Click "add" in the "ISAPI filter" item, and enter the Filter Name in rewrite. the executable file is c: \ rewrite. dll;
3. Modify the httpd. ini file and add the corresponding filter rules, for example:
Rewriterule ^ (. *)/([a-z0-9 \-\ _] +) $1/Default \. aspx \? Id = $2 [I, O]
Http: // localhost/text is equivalent 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 is equivalent 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
Dede addition method (Note: Here is the regular expression method ):
Rewriterule ^ (. *)/Tag/(. +) $1/Tag \. php \? $2/
Rewriterule ^ (. *)/Tag/(. +) \. html $1/Tag \. php \? $2
4. Restart IIS to take effect. (This step is very important. Restart IIS to load the configuration every time httpd. INI is modified .)
5. Modify the Dede functions:
\ Include \ inc_arcpart_view.php
\ Include \ inc_channel_unit_functions.php
\ Include \ inc_pubtag_make.php
\ Include \ inc_taglist_view.php
That is, change all links to static addresses: tag. php? /-> Tag/
Then generate the relevant page.