Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Why the following videos for htttp to https conversion not working in IIS 7.5? We are having an internal url https://192.168.3.1/ and an extrnal domain provided as x. Thus
https://www.x.com works as SSL certificate is enabled. But if the user types http it isn't going to https and vice versa. While binding we have set local site and external with host name and no ip address. We did exactly the same way as the video. Is it a binding done in IIS 7.5?

CSS
Links are as follows:
http://www.youtube.com/watch?v=U7USHit5mhY
Posted

1 solution

Well it looks like you're doing something wrong. I have doing this on IIS 7, 7.5 and is works for me. here is the XML code from the web.config.

XML
<rewrite>
 <rules>
 <rule name="http to https" stopprocessing="true">
 <match url="(.*)" />
 <conditions>
 <add input="{HTTPS}" pattern="^OFF$" />
 </conditions>
 <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirecttype="SeeOther" />
 </rule>
 </rules>
 </rewrite>

Match your web.config rewrite code from this one or you can replace this code with your rewrite code. let me know if there's any problem see ya bye :)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900