I have an internal domain iis server which has a website that is bound to https
sitename and sitename.domain.com
but it also accepts http to
sitename and sitename.domain.com
I want to redirect using iis url rewrite so when someone enters http://sitename/?foo=bar it redirects to https://sitename.domain.com/?foo=bar
I also want to redirect url https://sitename/?foo=bar to https://sitename.domain.com/?foo=bar
I have not been able to get this working at all
You can try this rule: