UrlRewriter.dll重写URL的规则
2009-11-09 15:59
337 查看
<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&id1=$2" processing="stop" />
</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&id1=$2" processing="stop" />
</rewriter>
相关文章推荐
- Intelligencia.UrlRewriter.dll重写URL的规则例子
- 转载:.NET4.0下web应用程序用UrlRewriter.dll重写无后缀路径
- UrlRewritingNet.UrlRewriter.dll 重写iis7.5 404错误
- Intelligencia.UrlRewriter.dll aspx重写为html实例(asp.net 2.0)
- 微软URLRewriter.dll的url重写在.net简单使用
- URL重写,asp.net URL重写,URLRewriter.dll下载,URLRewriter,URLRewriter下载,URL重写学习(初级篇)
- 微软URLRewriter.dll的url重写在目标框架.Net Framework2.0、4.0和应用程序池经典模式、集成模式下的配置
- .NET4.0下web应用程序用UrlRewriter.dll重写无后缀路径
- URL重写只要下载一个URLRewriter.dll
- URL重写,asp.net URL重写,URLRewriter.dll下载,URLRewriter,URLRewriter下载,URL重写学习(初级篇)
- 简单实用的重写URL(URLRewriter.dll)
- .NET4.0下网站应用法度用UrlRewriter.dll重写无后缀路径 (在IIS7.5中的设备办法)
- URL重写,静态地址映射,asp.net URL重写,URLRewriter.dll下载,URLRewriter,URLRewriter下载,URL重写学习(终级篇)
- 借助微软提供的url重写类库URLRewriter.dll(1.0)实现程序自动二级域名,域名需要泛解析
- IIS7下.NET4.0 网站UrlRewriter.dll重写无后缀路径 失效
- UrlRewritingNet.UrlRewriter.dll 重写url 在虚拟主机上使用
- .NET4.0下web应用程序用UrlRewriter.dll重写无后缀路径
- URL重写很简单,只要下载一个URLRewriter.dll
- UrlRewritingNet.UrlRewriter.dll 重写iis7.5 404错误
- 利用Intelligencia.UrlRewriter.dll实现URL重写2