ӭteamٷ̳ HTTP://WWW.TEAM5.CN


1ѹC̣طҲɣǾķĿ¼ļṹ

C:\rewrite
C:\rewrite\ISAPI_Rewrite.dll
C:\rewrite\httpd.iniʽдο²

ķùȨޣҪC:\rewrite\Ŀ¼ҪõվӦȨޣҲֱEveryoneɶȡͶеȨޣ

2װISAPI_RewriteIISվҼԴڣͼ總ͼ

3ӳɹIISٻصISAPIɸѡҳ濴ǲɫģɫʾISAPI_RewriteѾˣɫʾ⣬һȨ޵⵼£


***********************************************************************************

װ˵

re_writeiisһģ飬Writeļ Rewrite.dll ذװ˵

1IISIsapiɸѡɸѡ reִļѡ Rewrite.dll
2httpd.iniļ

RewriteRule /theard-(\d+)\.html /Thread\.asp\?tid=$1 [N,I]
ʾthread.asp?tid=95 תThread-95.html

ԴƣиĲӦ(\d+)id=$1id=$2,ȵȡ


ĿǰΪձĶ̬ҳasp,php,jsp,shtml,jhtml,cgi......һЩԼģ磺aspx,do,index,helloȵȡʽΪnews.asp?id=95ͨre_writeתnews/95.htmlԱgoogleԸҳʶ




ڴݷҳôдǣ

Thread_<%=Page%>_<%=type%>.html עpageǷҳҳtypeͣ
ʽThread_1_95.html

һҳΪThread_2_95.htmlһҳѭǣ
Thread_3_95.htmlԴơ

Ҫhttpd.iniļ´룺
RewriteRule /Thread_(\d+)_(\d+)\.html /Thread\.asp\?page=$1&tid=$2 [N,I]

Ķ̬жҪݣôӶ(\d+)ɣ£

RewriteRule /Thread_(\d+)_(\d+)_(\d+)\.html /Thread\.asp\?page=$1&type=$2&type2=$3 [N,I]

ҳʽǣThread_1_95.html