Score:0

Host a .NET Core web application in a folder of a WordPress website on a Windows server running IIS

vn flag

I have a SaaS application where the front-end marketing website is developed using a WordPress website while the main SaaS product is developed in .NET Core technology. In our case, both of these websites had different domain names. (www.example.com and app.example.com).

Now recently we have got a couple of people who are interested in white-labeling our product. So for all of them, we want to host a WordPress website and in it, there is an "app" folder that runs the .net Saas Application. I want to know if it is possible. If yes, how?

I also tried the below steps but couldn't achieve it - don't know why. Any idea on this?

  • Install the IIS URL Rewrite module on your server if it is not already installed.
  • In IIS Manager, navigate to the WordPress website and select the "app" folder. Click on the "URL Rewrite" icon in the IIS Manager to open the URL Rewrite module. Click on "Add Rules" in the right-hand pane, and then select "Blank rule" from the options.
  • In the "Name" field, enter a name for the rule (e.g., "app-rule").
  • In the "Pattern" field, enter the pattern for the URL that should be redirected to your .NET application (e.g., "app/*").
  • In the "Conditions" section, add a condition that checks if the requested URL is a file or a directory. This will ensure that the rule only applies to requests for the "app" folder and not for other parts of the WordPress website.
  • In the "Action" section, select "Rewrite" as the action type and enter the URL of the .NET application in the "Rewrite URL" field. Click "Apply" to save the rule.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.