IIS 7 URL Rewrite force redirect http --> https

I'm using an SSL wildcard certificate in IIS 7 and I'm trying to force the following redirect:

The wildcard certificate is : *.domain.com

http://client1.domain.com ----> https://client1.domain.com

I used the IIS 7 URL rewrite snap in to create the following rewrite rule in the XML configuration, which works properly if I'm using a regular non-wildcard certificate. Anyone know if I'm missing anything a step?

<rewrite>   
  <rules>     
    <rule name="client1.domain.com" stopProcessing="true">      
      <match url=".*"/>       
      <conditions>         
        <add input="{HTTPS}" pattern="off"/>         
        <add input="{HTTP_HOST}" pattern="^client1\.domain\.com$"/>         
      </conditions>       
      <action type="Redirect" url="https://{HTTP_HOST}{URL}"/>       
    </rule>     
  </rules>   
</rewrite>

Answers


The problem was the rewrite wasn't getting invoked, so I re-installed the URL Rewrite IIS snap-in.


Need Your Help

reports in junit selenium webdriver

selenium report webdriver

I use selenium web driver with junit in Eclipse. Advice me please how can I report test results?

parse json string from wikimedia using jquery

jquery json mediawiki wikimedia

Im tring to get the infobox from wiki pages. For this I'm using wiki api. The following is the url from which I'm getting json data.