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.

1

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.