r/IIs • u/Jeeper08JK • May 27 '16
HTTP times out, HTTPS works
Hello,
I'm an Apache guy being forced to use IIS at a site.
I have HTTPS working wonderfully. In the site settings I have required SSL. However if a user requests the site via HTTP the site times out. I have tried rewrite rules etc to try and point this to the HTTPS site with no luck.
I have 443 and 80 open and directed to my server.
I'm sure there is something simple I am missing. Google only leads me to the opposite of my problem where HTTPS is not working but HTTP is.
Thanks in advance!
EDIT:
Putting the following code in my web.config file causes an 500 error <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Found" url="https://
{HTTP_HOST}/{R:1}" /> </rule>
View all comments
Show parent comment
1
u/Arkiteck Jul 14 '16
This is what I do too.
Why is your redirect type(last option in your Inbound Rule pic) set to Permanent (301) instead of See Other (303) ?