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.