2

I am creating a redirection for an app written with .Net Framework 4.5.

In the RouteConfig file i create a new routes.MapRoute() and it works. It shows the Controller and action that I want.

But I dont want to mantain the user the url and use the app from there. I just want that when the user write /Something it redirects to /AnotherSomething, not to use the app in /Something.

How should I do?

1

1 Answer 1

-1

If understand you correctly:

routes.RouteMap("RedirectExample", "Something", new { controller : "MyController", action : "AnotherSomething"});
Sign up to request clarification or add additional context in comments.

1 Comment

I think this show me the app that I want but maintains the URL. I want that when the user types /Something it get redirects to Something/Anothersomething.

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.