要求URL Rewritter问题解决方案 [英] URL Rewritter problem solution required

查看:88
本文介绍了要求URL Rewritter问题解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个网站上工作,我正在使用URL rewritter(http://urlrewriter.net),我正在使用.net Framework 3.5和IIS 7,我必须显示用户的详细信息.目前,我在我的项目中有一个文件夹具有Default.aspx文件的指定用户,该文件将重写URL,如:

http://localhost:5000/user/123.aspx

其中123是我想要使其类似的用户的UserID

http://localhost:5000/user/123/Nameofuser.aspx

是否可以使用网址重写器?即,URL应该像http://localhost:5000/user/UserID/Nameofuser.aspx

I am working on a website,i am using URL rewritter(http://urlrewriter.net) i am using .net framework 3.5 and IIS 7, I have to display details of user Currently i have a folder in my project named user with a Default.aspx file which rewrites URL like:

http://localhost:5000/user/123.aspx

where 123 is the UserID of the user i want to make it like

http://localhost:5000/user/123/Nameofuser.aspx

is it possible with using url rewritter?? ie the URL should like http://localhost:5000/user/UserID/Nameofuser.aspx

推荐答案

可以.我不明白为什么不这样做.你尝试了吗?

如果需要,请在此处提供一些参考详细信息:
使用ASP.NET进行URL重写 [ MSDN:URL重写 [
Sure you can do. I don''t see the reason why not. Did you try?

If needed, few reference details here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]


这篇关于要求URL Rewritter问题解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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