My web.config has the following rewrite element commented out on my machine, but when deployed to our QA server, it is not commented out. The difference between my machine and QA is that QA has an SSL certificate and my machine doesn't.
<system.webServer>
<!--<rewrite>
<rules>
<clear/>
<rule name="Redirect to https" stopProcessing="true">
<match url=".*"/>
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false"/>
</rule>
</rules>
</rewrite>-->
When this is not commented out, I get a 500.19 error, invalid configuration? My question is, how do I get this rewrite to work on my machine? I guess installing a certificate is one part of the solution, but would like to know, if anything, what else I will have to do, in IIS etc. to get the project to run without this config element being commented out?
