apocalypse
apocalypse

Reputation: 5884

How do I create an Alias for a page URL?

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

Answers (2)

cpoDesign
cpoDesign

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

Related Questions