网址改写和响应重定向问题 [英] Url Rewriting with response redirect problem

查看:102
本文介绍了网址改写和响应重定向问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友.
我想在我的网站中实现url重写,当前在url中显示此类地址. http://localhost:1724/DoctorAssosiation/docprofile ?? doctorid = JC7 [ ^ ]
但我想这样显示我的网址 http://localhost:1724/DoctorAssosiation/docprofile/JC7 [ ^ ]
但是我无法实现这种类型,因为这会显示动态数据.

所以请您能告诉我我该如何实施.你能举个例子吗?
预先感谢.

Hello friends.
I want to implement url rewriting in my website, currently in url show such type address.http://localhost:1724/DoctorAssosiation/docprofile??doctorid=J.C.7[^]
but i want to display my url like this http://localhost:1724/DoctorAssosiation/docprofile/J.C.7[^]
but i am unable implement such type, because this is displaying dynamic data.

so please can u tell me how can i implement this. can u give me some example.
Thanks in advance.

推荐答案

尽管您尚未将其标记为ASP.NET,但这肯定是一个Web应用程序问题.

即使您的URL具有查询字符串(您称其为动态数据"),也可以使用URL重写来处理这种常见情况.

阅读此处以了解实施:
使用ASP.NET进行URL重写 [ MSDN:URL重写 [
Though you have not tagged it as ASP.NET, this surely is a web app question.

Even though your URL has query string (which you said as ''dynamic data''), a common scenario that can be handled using URL rewriting.

Read here to learn about implementation:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]

Try!


这篇关于网址改写和响应重定向问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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