ÓÃISAPI_RewriteʵÏÖaspα¾²Ì¬
ASPÍøÕ¾³ÌÐòÔÚ¹úÄÚÔËÓúܹã,µ«ÊÇÀàËÆÓÚ im286.asp?id=20050307213811ÕâÑùµÄURLÓе㲻ÀûÓÚËÑË÷ÒýÇæµÄÊÕ¼,Ò²¾ÍÊÇ˵²»·ûºÏÓѺÃURL(URLs- Friendly)µÄ±ê×¼,ÄÇôÎÒÃÇÓÃISAPI_Rewrite´òÔìÒ»¸öClean URL,
1.ÏÂÔØISAPI_Rewrite.ISAPI_Rewrite ·Ö¾«¼ò(Lite)ºÍÍêÈ«(Full)°æ.¾«¼ò°æ²»Ö§³Ö¶Ôÿ¸öÐéÄâÖ÷»úÕ¾µã½øÐÐÖØÐ´,Ö»ÄܽøÐÐÈ«¾Ö´¦Àí.²»¹ý¶ÔÓÚÓзþÎñÆ÷µÄÅóÓÑ,¾«¼ò°æÒ²¾Í¹»À².¾«¼ò°æ ÏÂÔØµØÖ·:http://www.helicontech.com/download/,¾ÍÊÇÄÇLite Version (free)À².
2.°²×°.msiµÄÎļþ,ºÍ×°Ò»°ã³ÌÐòÒ»Ñù×°¾Í¿ÉÒÔÁË,°³¾Í×°ÔÚD:\ISAPI_Rewrite.
3.½ÓÏÂÀ´Ò»²½±È½ÏÖØÒªÅ¶,¿´×Ðϸà¶.´ò¿ªInternet ÐÅÏ¢·þÎñ,ÓÒ¼ü,webÕ¾µãÊôÐÔ,µçISAPIɸѡÆ÷Ñ¡Ï.Ìí¼ÓɸѡÆ÷,Ãû³Æ×Ô¼ºÌî,·¾¶×Ô¼ºÖ¸¶¨ISAPI_Rewrite.dll,È»ºóÈ·¶¨.
4.À´²âÊÔÒ»ÏÂ.н¨Ò»¸ö1ting.asp,ÀïÃæÐ´ÉÏ
<%=request.querystring("inso")%>
,Ч¹û¾ÍÊÇÖ´ÐеÄʱºò1ting.asp?inso=*ä¯ÀÀÆ÷ÏÔʾ*.
5.ÕâÒ»²½ºÜÖØÒªÅ¶,¿ªÊ¼Ìí¼Órewrite¹æÔò.ÕýÔò,ºÃÍ·Í´,ÐÒ¿÷Õâ¸öÀý×ӱȽϼòµ¥.
ÕÒµ½ISAPI_RewriteĿ¼,°Ñhttpd.iniµÄÖ»¶ÁÊôÐÔÈ¥µô,´ò¿ª±à¼.ÎÒÃÇÒª°Ñ1ting.asp?inso=im286Ó³Éä³ÉΪ1ting-im286.htmlÕâÑùµÄÀàÐÍ,ÐèÒªÔÚhttpd.iniÀï¼ÓÉÏÕâôһÐÐ:
RewriteRule /1ting-([0-9,a-z]*).html /1ting.asp\?inso=$1
±£´æ.
.À´À´À´,µ½ä¯ÀÀÆ÷Àï²é¿´Ò»ÏÂЧ¹û°É.ÊäÈëhttp://127.0.0.1/1ting.asp?inso=im286 ºÍ http://127.0.0.1/1ting-im286.html,ÏÔʾµÄÄÚÈÝÊDz»ÊǶ¼ÊÇim286?Õâ¾ÍÖ¤Ã÷³É¹¦À²!
ºÙºÙ,1ting-im286.htmlÕâÑùµÄÒ³ÃæÒª±È1ting.asp?inso=im286ÈÝÒ×ÊÕÈë,ËùÒÔÏÖÔÚ»¹ÔÚÓö¯Ì¬·½Ê½µÄÅóÓÑ¿ÉÒÔ³¢ÊÔÒ»ÏÂÕâÑùµÄ¾²Ì¬Ó³ÉäЧ¹û. IIS RewriteÒ²¿ÉÒÔʵÏÖÕâÑùµÄ¹¦ÄÜ¡£
ÍøÕ¾ÀïÃæµÄÁ´½ÓÐèÒª×Ô¼ºÊÖ¹¤¸Ä³É¾²Ì¬µØÖ·¸ñʽ
ISAPI_ReWrite ÎÞ·¨Ö§³Öºº×Ö´«µÝ,ʹÓÃserver.URLEncode()±àÂëһϾͿÉÒÔÁË£¬±ä³É%f1%f3 ÕâÑù
[\u4e00-\u9fa5] ÔÚISAPI_ReWriteÎÞЧ
ÕýÔò±í´ïʽ²Î¿¼£ºhttp://www.zhouhaihe.com/blog/article.asp?id=78
ÐÅÏ¢À´Ô´£ºÉîÛÚÍøÕ¾½¨Éè[www.wl168.com]
ÔÎĵØÖ·£ºhttp://www.wl168.com/news_show.asp?ArticleID=44
Ïà¹ØÎĵµ£º
ͨ¹ýʹÓÃÑéÖ¤¿Ø¼þ£¬¿ÉÒÔÏò ASP.NET ÍøÒ³ÖÐÌí¼ÓÊäÈëÑéÖ¤¡£ÑéÖ¤¿Ø¼þΪËùÓг£Óõıê×¼ÑéÖ¤ÀàÐÍ£¨ÀýÈ磬²âÊÔij·¶Î§ÄÚµÄÓÐЧÈÕÆÚ»òÖµ£©ÌṩÁËÒ»ÖÖÒ×ÓÚʹÓõĻúÖÆ£¬ÒÔ¼°×Ô¶¨Òå±àдÑéÖ¤µÄ·½·¨¡£´ËÍ⣬ÑéÖ¤¿Ø¼þ»¹ÔÊÐí×Ô¶¨ÒåÏòÓû§ÏÔʾ´íÎóÐÅÏ¢µÄ·½·¨¡£ÑéÖ¤¿Ø¼þ¿ÉÓë ASP.NET ÍøÒ³ÉϵÄÈκοؼ ......
Óöµ½ÁËÒ»¸öÄÑÌ⣬2003²Ù×÷ϵͳ ÔÙ°²×°Íê²¢ÅäÖúÃiisºóä¯ÀÀ.csÎļþµÄûÓÐÎÊÌ⣬¿ÉÊÇÒ»µ©ä¯ÀÀaspµÄÎļþ¾Í±¨http 500·þÎñÆ÷ÄÚ²¿´íÎó£¬ÎÒÔÚÆäËû»úÆ÷ÉÏͬÑùÊǺÍÎÒµÄÅäÖÃÒ»Ñù¾Í¿ÉÒÔä¯ÀÀaspµÄÎļþ£¬ºÜÓôÃÆ²»ÖªµÀÔõô»ØÊ£¬°´ÕÕÍøÉϵÄ˵·¨¶¼½øÐÐÁËÐ޸Ϲ²»Äܳɹ¦ä¯ÀÀaspÎļþ£¬ÄѵÀ»¹ÒªÖØÐÂװϵͳÂð£¿ÎÒ¸ÃÔõô°ì£¡£¡£¡ ......
ÏÖÔÚÖ÷Á÷µÄÍøÕ¾¿ª·¢ÓïÑÔÎÞÍâºõasp¡¢php¡¢asp.net¡¢jspµÈ¡£
ÍøÒ³´Ó¿ªÊ¼¼òµ¥µÄhmtlµ½¸´ÔӵķþÎñÓïÑÔ£¬×ß¹ýÁË10¶à¸öÄêÍ·£¬¸÷ÖÖ¼¼Êõ²ã³ö²»Çµ¥¸öµÄÖ÷Á÷¼¼ÊõÒ²ÔÚ²»¶Ï·Ðµİ汾£¬ÏÖÔÚ·ÖÎöϸ÷ÖÖÓïÑÔµÄÇø±ð¡¢ÓÅÊÆ¡¢ÁÓÊÆ¡¢¿ª·¢×¢ÒâÊÂÏ
HTML:µ±È»ÕâÊÇÍøÒ³×î»ù±¾µÄÓïÑÔ,ÿһ¸ö·þÎñÆ÷ÓïÑÔ¶¼ÐèÒªËüµÄÖ§³Ö,Ҫѧϰ,Õâ¸ö¿Ï¶¨ÊÇ¿ª ......
ĬÈÏÇé¿öÏ£¬ÔÚÒ³»Ø·¢µ½·þÎñÆ÷ʱ¡¢Ò³³õʼ»¯Ö®ºó£¨¼´ÊÓͼ״̬ºÍ»Ø·¢Êý¾ÝÒÑ´¦ÀíÖ®ºó£©ºÍµ÷ÓÃʼþ´¦Àí´úÂë֮ǰ£¬ASP.NET ÑéÖ¤¿Ø¼þ½«×Ô¶¯Ö´ÐÐÑéÖ¤¡£Èç¹ûä¯ÀÀÆ÷Ö§³Ö¿Í»§¶Ë½Å±¾£¬¿Ø¼þÒ²¿ÉÒÔÔÚä¯ÀÀÆ÷ÖÐÖ´ÐÐÑéÖ¤¡£
µ«ÊÇ£¬ÓÐʱÄú¿ÉÄÜÐèÒªÒÔ±à³Ì·½Ê½Ö´ÐÐÑéÖ¤¡£ÔÚÒÔÏÂÇé¿öÏ£¬Äú¿ÉÄÜÐèҪͨ¹ý±à³ÌÀ´½ ......
¿ÉÒÔʹÓà ASP.NET Login ¿Ø¼þ´´½¨µÇ¼ҳ¡£´Ë¿Ø¼þÌáÈ¡Óû§ÃûºÍÃÜÂ룬²¢Ê¹Óà ASP.NET ³ÉÔ±×ʸñºÍ Forms Éí·ÝÑéÖ¤À´ÑéÖ¤Óû§µÄƾ¾Ý²¢´´½¨Éí·ÝÑé֤Ʊ֤¡£
1¡¢´´½¨Ò»¸öʹÓà ASP.NET ³ÉÔ±×ʸñµÄ ASP.NET Web Ó¦ÓóÌÐò¡£ÓйØÏêϸÐÅÏ¢ºÍʾÀý£¬Çë²Î¼ûÅäÖà ASP.NET Ó¦ÓóÌÐòÒÔʹÓóÉÔ±×ʸñ ......