Url Rewrite without Microsoft's Url Rewrite module for IIS
I am having an Umbraco 8 project where the Windows Hosting provider has IIS 10 without Microsoft's Url Rewrite module.
I am using some simple standard rewriting rules in web.config (https redirect, HSTS), and I am looking for a way to accomplish the same rewriting without Microsoft's Url Rewrite module, but I am insecure what is the best approach.
I am grateful for some direction on this matter.
Here are the normal rewriting rules for Microsoft's Url Rewrite module which I want to duplicate with the help of some other solution:
Url Rewrite without Microsoft's Url Rewrite module for IIS
I am having an Umbraco 8 project where the Windows Hosting provider has IIS 10 without Microsoft's Url Rewrite module.
I am using some simple standard rewriting rules in web.config (https redirect, HSTS), and I am looking for a way to accomplish the same rewriting without Microsoft's Url Rewrite module, but I am insecure what is the best approach.
I am grateful for some direction on this matter.
Here are the normal rewriting rules for Microsoft's Url Rewrite module which I want to duplicate with the help of some other solution:
Best regards! Mikael
Hi Michael,
You probably need some coding for doing the http to https redirect.
For the header you are doing with the outbound rule. This can be set in the httpProtocol tag of the web.config
In the system.webServer tag add the following if you don't have httpProtocol tag. Otherwise update the existing one
Hi Dave,
thank you for the hint to customHeaders. I missed that one. That was easy! :-)
As for the
https
redirect, I changed global.asax like this and it works:You saved my day! Important for all IONOS users (1&1), since they don't have url-rewrite enabled.
I am glad it helped you. Yes I too learned this when I tried to make an IONOS (1&1) webspace work with Umbraco 8.
For users of the beautiful SEO Checker package, they can make use of its built-in rewrite module like this:
Please note that this
appSettings
key in web.configdoes force https only for backoffice requests.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.