UrlRewriter - a rule-based URL Rewriter for .NET.
Copyright (c)2007 Seth Yates
Author Seth Yates
Version 2.0 RC 1 build 6
Installation
============
1. Open your web project, or create a new one.
2. Add a reference to the Intelligencia.UrlRewriter assembly.
3. Open the web.config file.
4. Add Configuration section handler:
<configSections>
<section
name="rewriter"
requirePermission="false"
type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>
This enables the URL Rewriter to read its configuration from the rewriteRules node in the
web.config file.
5. Add UrlRewriter mapper HttpModule:
<system.web>
<httpModules>
<add
type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"
name="UrlRewriter" />
</httpModules>
</system.web>
This enables the URL Rewriter to intercept web requests and rewrite URL requests.
6. Add some rules to your web.config file:
<rewriter>
<if url="/tags/(.+)" rewrite="/tagcloud.aspx?tag=$1" />
<!-- same thing as <rewrite url="/tags/(.+)" to="/tagcloud.aspx?tag=$1" /> -->
</rewriter>
The syntax of the rewriter section is very powerful. Refer to the help file for more details
of what is possible. The above rule assumes you have mapped all requests to the .NET runtime.
For more information on how to do this, see http://urlrewriter.net/index.php/using/installation/
7. Compile and test!
没有合适的资源?快使用搜索试试~ 我知道了~
《ASP.NET电子商务开发实战》源码
共2000个文件
jpg:2254个
cs:700个
aspx:261个
5星 · 超过95%的资源 需积分: 12 471 下载量 160 浏览量
2012-02-01
23:28:24
上传
评论 3
收藏 40.52MB RAR 举报
温馨提示
此为《ASP.NET电子商务开发实战》一书的源码 Amazon 畅销图书 学习ASP.NET电子商务网站开发的必备参考书 真实案例,实战技巧,让你即学即用 本书通过一个贯穿全书的案例,为读者提供了实用的电子商务建站指南。首先,尽可能快、低成本地设立网站并使其运转起来;其次,改进购物体验来增加收入,开发商品推荐系统鼓励顾客购买更多的商品,从而使其成为一个能够投入运行、功能齐备的网站。最后,通过增加自动化和流程化的订单处理和后台管理来降低成本,并实现自处理信用卡交易,提高利润率。通过上述3 个阶段,本书讲述了设计和开发过程的各个方面,通读之后你将能够快速、便捷地构建出高质量、可扩展的电子商务网站。 本书内容系统、详实,适合作为ASP.NET 初中级程序员自学和程序设计的参考手册。
资源推荐
资源详情
资源评论
收起资源包目录
《ASP.NET电子商务开发实战》源码 (2000个子文件)
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
Global.asax 970B
CustomerDetailsEdit.ascx 8KB
CustomerDetailsEdit.ascx 8KB
CustomerDetailsEdit.ascx 8KB
CustomerDetailsEdit.ascx 8KB
CustomerDetailsEdit.ascx 8KB
CustomerDetailsEdit.ascx 8KB
CustomerDetailsEdit.ascx 8KB
UserInfo.ascx 2KB
UserInfo.ascx 2KB
UserInfo.ascx 2KB
UserInfo.ascx 2KB
UserInfo.ascx 2KB
UserInfo.ascx 2KB
UserInfo.ascx 2KB
UserInfo.ascx 1KB
UserInfo.ascx 1KB
UserInfo.ascx 1KB
UserInfo.ascx 1KB
UserInfo.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductsList.ascx 1KB
ProductReviews.ascx 1KB
ProductReviews.ascx 1KB
ProductsList.ascx 1KB
DepartmentsList.ascx 1KB
ProductsList.ascx 1016B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CategoriesList.ascx 882B
CartSummary.ascx 860B
CartSummary.ascx 860B
CartSummary.ascx 860B
CartSummary.ascx 860B
CartSummary.ascx 860B
CartSummary.ascx 860B
CartSummary.ascx 860B
CartSummary.ascx 860B
CartSummary.ascx 860B
CartSummary.ascx 860B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
DepartmentsList.ascx 810B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
suixin82
- 粉丝: 94
- 资源: 458
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页