UrlRewriter.dll重写URL的规则

< rewriter >
    
< rewrite  url ="~/default.html$"  to ="~/default.aspx"  processing ="stop"   />
    
< rewrite  url ="~/news_([0-9]+).html$"  to ="~/Article/ArticleShow.aspx?id=$1"  processing ="stop"   />
    
< rewrite  url ="~/Result_([0-9]+).aspx$"  to ="~/Job/Company/Result.aspx?cid=$1"  processing ="stop"   />
    
< rewrite  url ="~/company_([0-9]+).html$"  to ="~/Company/$1/index.html"  processing ="stop"   />
    
< rewrite  url ="~/Resume/([0-9]+)_([0-9]+).html$"  to ="~/Resume/$1/Resume_$2.html"  processing ="stop"   />
    
< rewrite  url ="~/([0-9]+)_([0-9]+).html$"  to ="~/company/$1/job_$2.html"  processing ="stop"   />
    
< rewrite  url ="~/job_([0-9]+).html$"  to ="~/company/$1/jobs_$1.html"  processing ="stop"   />
    
< rewrite  url ="~/news_l([0-9]+)_1.html$"  to ="~/company/$1/$1_news.html"  processing ="stop"   />
    
< rewrite  url ="~/news_([0-9]+)v([0-9]+).html$"  to ="~/company/$1/n_$2.html"  processing ="stop"   />
    
< rewrite  url ="~/contact_([0-9]+).html$"  to ="~/company/$1/contact.html"  processing ="stop"   />
    
< rewrite  url ="~/a_(.+)_(.+).aspx$"  to ="~/a.aspx?id=$1&amp;id1=$2"  processing ="stop"   />
</ rewriter >

你可能感兴趣的:(urlrewrite)