隐藏在浏览器中的扩展 [英] Extension hiding in browser

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

问题描述

亲爱的所有人,

我已经创建了一个Web应用程序,它可以正常工作.

我的要求是我想将页面名称Default.aspx隐藏为Default(我需要隐藏扩展名.aspx)

Home.aspx到Home
从Registration.aspx到Registration.

等等等等...我没有.页数.

那些访问我的网站的人,他们应该不知道应用程序是使用哪种技术创建的. .aspx,.php,.jsp等

请帮忙.如何在浏览器中隐藏扩展名.

Dear All,

I have Created a Webapplication, its working fine.

My requirement is I want to hide the page name Default.aspx to Default (I need to hide the extension .aspx)

Home.aspx to Home
Registration.aspx to Registration.

etc etc ....I have no. of pages.

Those who access my website, they should not know application is created using which technology. .aspx , .php , ,jsp etc

Please help. how to hide the extension in browser.

Thanks in ADVANCE.

推荐答案

您可以为此目的使用URL重写.

Link2 [
You may use URL rewriting for this purpose.

Link1[^]

Link2[^]


如果您使用的是.Net 4.0框架,则可以使用路由 [
If you are using .Net 4.0 framwork then you cab go for Routing[^].



您应该进行URL重写.请参考以下链接:
MSDN:ASP.NET中的URL重写 [ CP:使用ASP.NET进行URL重写 [ http://www.simple -talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/ [ http://blog.dotnettechy.com/2011/09/url-rewriting- in-aspnet-using.html [ ^ ]



--Amit
Hi,
You should go for URL Rewriting. Refer the links below:
MSDN : URL Rewriting in ASP.NET[^]
CP : URL Rewriting with ASP.NET[^]
http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/[^]
http://blog.dotnettechy.com/2011/09/url-rewriting-in-aspnet-using.html[^]



--Amit


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

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