网址映射和网址重写有什么区别? [英] What is the difference between url mapping and url rewriting ?

查看:86
本文介绍了网址映射和网址重写有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

最近我在asp.net上看到了2种技术,分别称为url映射和url重写.它们是相同的还是存在差异.如果是,则使用哪种技术?

预先感谢.

Hi all ,

Recently i saw 2 techniques in asp.net named url mapping and url rewriting.So are they the same or there are differences.If so which one to use ?

Thanks in advance.

推荐答案


URL重写和URL映射用于将虚拟页面映射到物理页面.区别在于URL重写用于根据匹配模式映射多个页面,URL映射用于映射单个页面.通过使用URL路由,在处理传入请求时不会更改URL,因为URL路由可以从URL中提取值.希望这可以阐明概念.
Hi,
URL rewriting and URL mapping are used to map a virtual page to a physical page. Difference is URL rewriting is used to map multiple pages according matching patterns, URL mapping is used to map a single page. By using URL routing, the URL is not changed when an incoming request is handled, because URL routing can extract values from the URL.Hope this will clarify the concept.


您可能会发现自己所需要的在这里寻找:
http://webgeek.elletis.com/difference-between-url-mapping-and -url-rewriting/ [ ^ ]
you may find what you are looking for here:
http://webgeek.elletis.com/difference-between-url-mapping-and-url-rewriting/[^]


这篇关于网址映射和网址重写有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆