This should be easy (if possible), but for some reason, I cannot find an example, and an HTML redirect causes too many redirects. This is for a site with abc.123.whatever binded to it.
I'm looking for:
http://abc.123.whatever to go to https://abc.123.whatever/bunchofstuff
and
https://abc.123.whatever to go to https://abc.123.whatever/bunchofstuff
And probably www.abc.123.whatever to go to https://abc.123.whatever/bunchofstuff
But still https://abc.123.whatever/onlypartofstuff
and http://abc.123.whatever/onlypartofstuff
to still go to https://abc.123.whatever/onlypartofstuff
Thank you so much in advance!
Using Http Redirect module, there should be at least two sites, http listening web site and https listening web site.
A critical point is inheritance of this http redirection settings to folders below web site in IIS.
I assume http redirection settings exist on Web Site level.
The IIS http redirection options are as follows:
"Redirect all requests to exact destination (instead of relative to destination)": The redirected address will be the same URL regardless of the address that is typed in the URL address bar of the client browser. For example if you enable this box, http://abc.123.com/anydir/anyfile.html will be redirected to http://abc.123.com/fixedDir whereas if you uncheck it the same source address will be redirected to http://abc.123.com/fixedDir/anydir/anyfile.html
"Only redirect requests to content in this directory (not subdirectories)": The requests for subdirectories will not be processed (redirected). Therefore if you define http redirection is web site level http://abc.123.com will be redirected to http://abc.123.com/fixedDir but client requests for http://abc.123.com/anydir will NOT be redirected to http://abc.123.com/anydirfixedDir/anydir.
With the same module you can redirect http sites to https:// addresses as well.