We have a .Net 4 site hosted in IIS 7. Some of the folders allow for files to be sent over ssl (https) and others respond with a redirect to http when https is attempted. We created a dummy text file to verify there is no magic code at work. We accessed the file directly via IP:port and get the same result. We see no htaccess files. We are stumped. What would cause only some folders of a site to allow ssl?
For example: Trying to open https://ourdomain.com/Hi.txt yields
<html><head><title></title><!-- <script language=\"javascript\">window.location.replace(\"http://ourdomain.com/Hi.txt");</script> --></head><body></body></html>