My hosting provider has ASP.NET 3.5 and I'm using MVC 2.0.
I have two domains on my account, http://www.domain1.com, and http://www.domain2.com, each has it's own virtual directory off of the root:
Their routing commands for their httpd.ini rerouts http://www.domain1.com to http://www.domain1.com/domainone
If I type in the address bar http://www.domain1/Home/About, it works properly.
My website links created using Html.ActionLink add the virtual directory.
If you mouse over the About link in your standard MVC2.0 webapp, it displays as follows:
http://www.domain1.com/domainone/Home/AboutAll of my testing and setup on my development machine doesn't have this virtual directory, and in the past my webhost didn't have this issue in the path. But since the move to their 'new' shared hosting platform, this is now what I'm having to deal with.
How do I setup my ASP.NET MVC 2.0 web application to remove the unwanted virtual directory name from the path in my ActionLink controls?
For example, when I mouse over the About link, I want the path to be http://www.domain1/Home/About
..or how can I add a new route handler to strip the virtual directory path from http://www.domain1/domainone/Home/About.
When I mouse over the Log On button on my logon page, the partial url domainone/Account/Lo
View Complete Post