i have situation figured quite easy in mvc. want have request on iis site end going 1 specific action.
so added following route
routes.maproute( "everything", "{*foo}", new { controller = "home", action = "index" } ); that works request going server, there things ending being dealt other handlers:
- http://foo.com/ (works)
- http://foo.com/bar (works)
- http://foo.com/bar/baz (works)
- http://foo.com/bar/baz.txt (works - used not work, started working after adding runallmanagedmodulesforallrequests="true" in web.config)
- http://foo.com/bar/baz. (does not work. stumped why)
this in mvc 5, don't think should make difference solution.
what trick missing here?
i use url rewrite module this. should it. (obviously, change url whatever want):
<rewrite> <rules> <rule name="catch-all" stopprocessing="true"> <match url=".*" /> <action type="rewrite" url="/index.html" appendquerystring="false" /> </rule> </rules> </rewrite>
Comments
Post a Comment