我减少了我的网址。我可以减少它 [英] I have reduce my url..how can I reduce that
本文介绍了我减少了我的网址。我可以减少它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的网络应用程序中,我想减少我的网站网址..当我要访问管理员端时,我必须输入整个网址,如www.this.com/Admin/AdminLogin.aspx,但我想减少这个网址,它应该像'www.this.com / admin'我怎么能这样做..请帮助我..
我有什么尝试过:
我已将AdminLogin页面设置为启动页面,但后来却无法正常工作
解决方案
您可以将admin.aspx文件添加到根文件夹,这会导致重定向到您的AdminLogin页面,或者设置自定义404错误处理程序来执行重定向。
404版本更灵活,因为它允许您显示自定义的抱歉,我没有那个页面或通过快捷方式名称重定向到管理员登录,用户登录或您网站上的任何其他页面
In my web application I want to reduce my website url..when I am going to access Admin side I have to type the entire url like "www.this.com/Admin/AdminLogin.aspx" but i want to reduce this url ,it should be like'www.this.com/admin' how can i do that..please help me..
What I have tried:
I have set AdminLogin page as a start up page but then to it is not working
解决方案
You can either add a "admin.aspx" file to your root folder which causes a redirect to your AdminLogin page, or set up a custom 404 error handler to do the redirect instead.
The 404 version is more flexible, as it allows you to display a custom "Sorry, I haven't got that" page or redirect to admin login, user login, or any other page on your site via a short-cut name.
这篇关于我减少了我的网址。我可以减少它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文