V
vbocan
I am using Godaddy Deluxe hosting which allows me to host several websites in
a single hosting account. The main website is hosted in the root of the
hosting account and the rest of the websites are hosted in a subfolder in the
form /hosting/websitename.
If I deploy an MVC app under a virtual directory, I get ugly looking URLs
like:
http://www.mywebsite.com/hosting/mywebsite/Home/About
Note the /hosting/mywebsite part. For some reason the Html.ActionLink helper
method infers the real hosting path which is exactly what I want to avoid.
The URL should look like:
http://www.mywebsite.com/Home/About
The problem is easily reproducible by creating a new MVC application and
changing the folder of the dev server from root (/) to something else (such
as /hosting/).
How can I go about that apart from purchasing a new Godaddy hosting account?
a single hosting account. The main website is hosted in the root of the
hosting account and the rest of the websites are hosted in a subfolder in the
form /hosting/websitename.
If I deploy an MVC app under a virtual directory, I get ugly looking URLs
like:
http://www.mywebsite.com/hosting/mywebsite/Home/About
Note the /hosting/mywebsite part. For some reason the Html.ActionLink helper
method infers the real hosting path which is exactly what I want to avoid.
The URL should look like:
http://www.mywebsite.com/Home/About
The problem is easily reproducible by creating a new MVC application and
changing the folder of the dev server from root (/) to something else (such
as /hosting/).
How can I go about that apart from purchasing a new Godaddy hosting account?