This is being migrated to an Azure Web App, which cant replicate this functionality.
So my question is, how can I replicate this from a code perspective?
I have tried adding rules to routing, I have also tried adding this to url rewriting rules, but all I do seems to conflict in some manner on how Umbraco operates. So there must be something there I have overlooked.
What am I doing wrong perhaps? The most common error message is Umbraco saying it cant find the page at that url, as in it thinks the sub page is an actual node and not just routing. Which is odd because this should happen AFAIK.
As a side note: Yes I am aware that I can just host it normally, I have tested it and everything works fine, but the problem is going through everything that links to this specific web app with this specific url is a much longer and tedious task than simply fixing some routing.
It sounds like you want to serve all content via /mysubapp and you do not want to have to go through all links that you currently have to this directory.
You can use culture and hostnames to do this. Ignore the language part and just create a new hostname with /mysubapp in the Domain field. Then all pages will be served via this directory in your URL structure:
Umbraco 8 - Add sub page to all requests and routing
I cant find any conclusive answers to this so I will just ask here and hopefully someone has a clue on how to tackle this:
I have an umbraco based application thats currently hosted as a sub application in a regular IIS setup. So the url is for example: https://www.mywebsite.com/mysubapp. This means that if you access the backoffice the url is https://www.mywebsite.com/mysubapp/umbraco .
This is being migrated to an Azure Web App, which cant replicate this functionality. So my question is, how can I replicate this from a code perspective? I have tried adding rules to routing, I have also tried adding this to url rewriting rules, but all I do seems to conflict in some manner on how Umbraco operates. So there must be something there I have overlooked. What am I doing wrong perhaps? The most common error message is Umbraco saying it cant find the page at that url, as in it thinks the sub page is an actual node and not just routing. Which is odd because this should happen AFAIK.
As a side note: Yes I am aware that I can just host it normally, I have tested it and everything works fine, but the problem is going through everything that links to this specific web app with this specific url is a much longer and tedious task than simply fixing some routing.
Hi Frederik,
It sounds like you want to serve all content via /mysubapp and you do not want to have to go through all links that you currently have to this directory.
You can use culture and hostnames to do this. Ignore the language part and just create a new hostname with /mysubapp in the Domain field. Then all pages will be served via this directory in your URL structure:
https://docs.umbraco.com/umbraco-cms/v/13.latest-lts/tutorials/creating-a-basic-website/adding-language-variants#adding-culture-and-hostnames-to-the-root-node-of-the-website
Cheers,
Marc
Thanks a lot! Cant believe I didnt think of this before. Guess I just stared too long at the problems in front of me. That stuff happens.
So far it seems to have done the trick, I need some more testing but it seems to work so far :)
is working on a reply...