关于asp伪静态的问题 急急急!!!!!
想把我们站点搞成伪静态的 程序是ASP 自己的服务器系统2003
一、IIS Rewrite.dll配置成功
二、写好伪静态规则
三、重起IIS
上面的三步我都做了
可是打开我的网站却还是显示的 xxx.ASP 各位大哥这是什么原因啊
跪求解答!
[ISAPI_Rewrite]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32#简体中文设置RewriteRule /index\.html /index.aspRewriteRule /Login\.html /d_hydl.aspRewriteRule /Reg\.html /d_hyzc.aspRewriteRule /zffs\.html /d_zffs.aspRewriteRule /yjbl\.html /d_yjbl.aspRewriteRule /zfwg\.html /d_zfwg.aspRewriteRule /xtjs\.html /d_xtjs.aspRewriteRule /contact\.html /s_contact.aspRewriteRule /About\.html /s_about.aspRewriteRule /jsggView(\d+)\.html /d_jsggView\.asp\?newsid=$1 [N,I]RewriteRule /news(\d+)\.html /news\.asp\?newsid=$1 [N,I]
rem ==================rem 伪静态规则rem =================='isapi_writePublic Function ArchiveHtml(Textstr) Str=Textstr If isUrlreWrite = 1 Then Dim Str,re,Matches,Match Set re=new RegExp re.IgnoreCase =True re.Global=True re.Pattern = "index\.asp" str = re.Replace(str,"index.html") ' re.Pattern = "<a(.[^>]*)index\.asp\?boardid=(\d+)(&|&)topicmode=(\d+)?(&|&)list_type=([\d,]+)?(&|&)page=(\d+)?"' str = re.Replace(str,"<a$1index_$2_$4_$6_$8.html")' re.Pattern = "<a(.[^>]*)index\.asp\?boardid=(\d+)(&|&)action=(.[^&]*)?(&|&)topicmode=(\d+)?(&|&)list_type=([\d,]+)?(&|&)page=(\d+)?"' str = re.Replace(str,"<a$1index_$2_$4_$6_$8_$10.html")' re.Pattern = "<a(.[^>]*)index\.asp\?boardid=(\d+)(&|&)page=(\d+)?(&|&)action=(.[^<>""\'\s]*)?"' str = re.Replace(str,"<a$1index_$2_$4_$6.html")' re.Pattern = "<a(.[^>]*)index\.asp\?boardid=(\d+)(&|&)topicmode=(\d+)?"' str = re.Replace(str,"<a$1index_$2_$4.html")' re.Pattern = "<a(.[^>]*)index\.asp\?boardid=(\d+)(&|&)page=(\d+)?"' str = re.Replace(str,"<a$1index_$2_$4_.html")' re.Pattern = "<a(.[^>]*)index\.asp\?boardid=(\d+)"' str = re.Replace(str,"<a$1index_$2.html")' re.Pattern = "<a(.[^>]*)dispbbs\.asp\?boardid=(\d+)(&|&)replyid=(\d+)?(&|&)id=(\d+)?(&|&)skin=(\d+)?(&|&)page=(\d+)?(&|&)star=(\d+)?"' str = re.Replace(str,"<a$1dispbbs_$2_$4_$6_skin$8_$10_$12.html")' re.Pattern = "<a(.[^>]*)dispbbs\.asp\?boardid=(\d+)(&|&)replyid=(\d+)?(&|&)id=(\d+)?(&|&)skin=(\d+)?(&|&)star=(\d+)?"' str = re.Replace(str,"<a$1dispbbs_$2_$4_$6_skin$8_$10.html")' re.Pattern = "<a(.[^>]*)dispbbs\.asp\?boardid=(\d+)(&|&)replyid=(\d+)?(&|&)id=(\d+)?(&|&)skin=(\d+)?"' str = re.Replace(str,"<a$1dispbbs_$2_$4_$6_skin$8.html")' re.Pattern = "<a(.[^>]*)dispbbs\.asp\?boardid=(\d+)(&|&)id=(\d+)?(&|&)page=(\d+)?(&|&)(star|move)=([\w\d]+)?"' str = re.Replace(str,"<a$1dispbbs_$2_$4_$6_$9.html")' re.Pattern = "<a(.[^>]*)dispbbs\.asp\?boardid=(\d+)(&|&)id=(\d+)?(&|&)page=(\d+)?"' str = re.Replace(str,"<a$1dispbbs_$2_$4_$6.html")' re.Pattern = "<a(.[^>]*)dispbbs\.asp\?boardid=(\d+)(&|&)id=(\d+)?"' str = re.Replace(str,"<a$1dispbbs_$2_$4.html")' re.Pattern = "<a(.[^>]*)dv_rss\.asp\?s=(.[^<|>|""|\'|\s]*)"' str = re.Replace(str,"<a$1dv_rss_$2.html")' re.Pattern = "<a(.[^>]*)dv_rss\.asp"' str = re.Replace(str,"<a$1dv_rss.html") Set Re=Nothing End If ArchiveHtml = StrEnd Function
[解决办法]