views:

23

answers:

2

Hi,

The title may be a little unclear, but I didn't know how to describe it otherwise. The problem is the following:

I have an mvc website and 2 servers, a testing server and the real server. the problem is: the testing server folder is a root folder, so the adress is:

http://www.testingserver.com/ -> this poses no problem.

but now I have to deploy to the life server which is:

http://www.realserver.com/myappfolder/ ->this is a problem.

this is a problem because the routing does not work this way, it does:

http://www.realserver.com/{controller}/... instead off http://www.realserver.com/myappfolder/{controller}

Is ther a valid way to solve this problem ?

A: 

Hey,

Did you make myappfolder a virtual directory? Do you have the ability to (do you have full control, or is this a shared hoster)?

EDIT: You should be able to change your default route to include myappfolder in the route URL... so change the default "/{controller}/{action}.." to "/myappfolder/{controller}/{action}..".

Brian
It is a shared hoster
Nealv
Edited. You should be able to include myappfolder in the routed url.
Brian
but thet the server that doesn't runs on that folder doesn't work
Nealv
I'm not sure what you mean; what I was addressing was the scenario of http://www.realserver.com/{controller}/ not including myappfolder, are you talking about the test server being an issue?
Brian
A: 

Ok,

I just wrote an ignorerule in the routing in global asax, for now the problems are solved :)

example:

routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
Nealv