0

I want to redirect from "mysite.com" to "mysite.com/home/index" (option of default route) if someone enters only the domain name in browser.

surely it can be done overriding begin request method in global.asax, but i think there must be some kind of route of web.config options.

Darren Burgess
  • 4,200
  • 6
  • 27
  • 43
Denis Agarev
  • 1,531
  • 4
  • 17
  • 34
  • Have a look here http://stackoverflow.com/questions/2006673/asp-net-mvc-default-url-view as well. – NoWar Oct 05 '12 at 11:13

2 Answers2

1

I would change the default route to a new action called RedirectToIndex or similar which just redirects to Index.

No mess in global.asax and it's easy to tell what's happening.

jgauffin
  • 99,844
  • 45
  • 235
  • 372
0

You can do some URL redirecting via URL Rewrite (IIS), there is no way to do this via Web.Config or Route.

Cleber Dantas
  • 454
  • 2
  • 9