如何在浏览器中隐藏部分网址 [英] how to hiding part of the url in a browser

查看:250
本文介绍了如何在浏览器中隐藏部分网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在运行我的网站时隐藏显示浏览器中url的最后一部分,例如,如果我在浏览器中显示的内容类似于http:// www .mysiteasp.com / section1 / page1.aspx,我想在浏览器中显示网址http://www.mysiteasp.com/section1/

不幸的是我无法访问国际空间站和我不使用框架4.0。我不能使用重写而不能在框架4.0中使用路由。

有人可以帮助我。



谢谢提前

Hi all,
I want to hide the last part showing the url in a browser when run my site, for example if I run my site appears in the browser something like http://www.mysiteasp.com/section1/page1.aspx , I want to appear in the browser the url http://www.mysiteasp.com/section1/
Unfortunately I haven't access to the ISS and I don't work with framework 4.0. I don't can to use rewrite and don't can to use routing in framework 4.0.
someone could help me.

Thanks in advance

推荐答案

使用网址重写 [ ^ ]。

请参阅以下链接以获取示例文章:

使用ASP.NET重写URL的示例 [ ^ ]

用ASP.NET重写URL [ ^ ]

在Asp.Net 4.0中轻松重写URL的步骤 [ ^ ]

提示/技巧:使用ASP.NET重写网址 [ ^ ]



- 艾美
Use URL Rewriting[^].
Refer the links below for sample articles:
An Example of URL Rewriting With ASP.NET[^]
URL Rewriting with ASP.NET[^]
Easy Steps to URL Rewriting in Asp.Net 4.0[^]
Tip/Trick: Url Rewriting with ASP.NET[^]

--Amy


请通过此链接获得答案。

如何从asp.net中的url中删除页面名称? [ ^ ]
Please go through this link you will get your answer.
how to remove page name from url in asp.net?[^]


这篇关于如何在浏览器中隐藏部分网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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