Reputation: 5884
I have login.aspx
in folder server-root/System/Pages/Login/
and this long URL apears in Web broswer. How to map this URL to short version: server-root/login.aspx
?
I mean how to do this through Visual Studio.
I know of rewrite rules in Apache server, but dont know how to do this in VS 2010.
Upvotes: 0
Views: 5860
Reputation: 9153
If you are using ASP.NET MVC version you can create new mapping rule for translating the route to page you want
see page here: http://www.asp.net/mvc/tutorials/controllers-and-routing/creating-custom-routes-cs
if you are using web forms: http://msdn.microsoft.com/en-us/library/cc668202%28v=vs.90%29.aspx
Upvotes: 0
Reputation: 2053
Here are a range of solutions to this
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
Upvotes: 2