0

I have an MVC area app and it works fine locally:

https://localhost:8080/Area/Controller/View

But when I push to the server the routes get screwed up because the application is in a subfolder of the default web site like so:

https://companywebsite.com/Project/Area/Controller/View

Is there any way to fix this in web.config or IIS? I have a similar post at Routes in areas not working in MVC / Web forms hybrid app.

cdub
  • 24,555
  • 57
  • 174
  • 303
  • Did you create an application in IIS for the `Project` folder? – JuanR Apr 19 '18 at 20:54
  • Yes i did do that but sometimes it routes back to https://companywebsite.com/Area/Controller/View – cdub Apr 19 '18 at 22:30
  • Setting the application should tell MVC where to start routing from so that is not your problem. Do you have some sort of URL redirection running on this or the main company website? – JuanR Apr 20 '18 at 00:30
  • i don't believe so. If you look at the linked post when I had only one area it worked fine. The second area is causing the issues. Works locally though. – cdub Apr 20 '18 at 01:48
  • So you DO have redirection going on... – JuanR Apr 20 '18 at 13:19

0 Answers0