How to control URL by using MVC -- ver.2

4/1/2014

This article will show more information to use Global.asax.cs to Re-Write URL. In case, you want your URL to display like {action}{routes}. So, you don't want to display {Controller} to your URL.

Instead of using "http://test.com/Home/Company/Microsoft". You might want to try "http://test.com/Company/Microsoft", which hide your controller.

I changed following steps to make it support "{Action}/{Routes}"

Control / Action

Global.ascx.cs

Actually, i didn't want to make change to this's class(still looking for that case)

Result