ASP.NET MVC Action with ApplicationPath

Posted by Leandro on Stack Overflow See other posts from Stack Overflow or by Leandro
Published on 2010-03-20T06:02:27Z Indexed on 2010/03/20 6:11 UTC
Read the original article Hit count: 321

Filed under:
|
|
|
|

Hi,

i'm creating a mvc application and i'll use under subdomain like _http://myapp.mycompany.com, this subdomain is pointing to app subdirectory, but my actions are generated with applicationPath (subdirectory) always: _http://myapp.mycompany.com/myapp/Home/About. i want _http://myapp.mycompany.com/Home/About only, without applicationPath prefix.

Exists any configuration for this?? I'm using the correct methods: <%= Html.ActionLink("About", "About", "Home") %>

Actions rendered without ApplicationPath prefix, is possible in asp.net routing?

* Please, ignore undescore prefix in urls, but i'm novice in stackoverflow and i can't post valid urls =/

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET