Description:Basically I need two separate IIS URL Rewrite rule for my website, one for redirecting visitors from http to https and the other one for redirecting visitors from non-www to www using web.config
Previously I was using the solution which was for working fine for me with http but now I have setup the ssl so now I have tried updating the same code but I am having issues with it.
Posted by: Junaid Aziz | Posted on: Apr 01, 2022
1) For Redirect from http to https you can use following url rewrite rule
2) For Redirect from non-www to www you can use following url rewrite rule
Note: Make sure during the verification phase always use redirectType="Temporary" once you have verified that everything is working fine only then you should update it to redirectType="Permanent"
Replied by: Tabish Usman | Replied on: Apr 04, 2022