I need to set up a rule in URL Rewrite on IIS8 to remove the www from all https requests.
Below is what I want to achieve. I do not care if we remove www from all urls.
http://sitename.com/sub -> http://sitename.com/sub
http://www.sitename.com/sub -> http://www.sitename.com/sub
https://sitename.com/sub -> https://sitename.com/sub
https://www.sitename.com/sub -> https://sitename.com/sub
I got it to work with this rule.
I also added this rule above it to force all requests to https