Possible Duplicate:
How to map Home/Action/id to just action/id?
I have a Views folder called “root”
Inside it is a view called “login.aspx”.

I have a Controller called “rootController.cs”.

I have an ActionResult called login()
It returns View(“login”).
When I run my app… To get to the login page I have to see an ugly url http://www.example.com/root/login

I would like it to say http://www.example.com/login.
How do I go about doing this?
Thanks in advance!
EDIT: ////
So far:

EDIT: ////
Solved:

Go to your
MvcApplicationclass (by default it is inGlobal.asax.csfile) and add the following code to theRegisterRoutes(RouteCollection routes)function: