Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Request Assistance Making a Redirect to HTTPS Work

$
0
0

I am trying to create a very simple redirect to HTTPS and having a really bad time doing it.  Here is what I have...

A vendor application with a website called tiger on my Windows 2008, IIS 7 server. Inside the tiger folder are a variety of other folders, including one called tiger.  The URL to get to this application is "esri.tampagov.net" and more specifically "esri.tampagov.net/tiger" If anyone comes to the website, without adding the word "tiger" after the url, we want them redirected, via SSL, to the tiger folder.  If anyone goes to the tiger folder without using SSL, we want it added.  This is what I am using...

<rule name="ESRI to HTTPS" stopProcessing="true">
     <match url=".*" />
                 <conditions>
                             <add input="{HTTPS}" pattern="^OFF$" />
                             <add input="{HTTP_HOST}" pattern="^esri\.tampagov\.net$" />
                             <add input="{HttpsRedirection:{REQUEST_URI}}" pattern="(.+)" />
                 </conditions>
                            <action type="Redirect" url="https://{HTTP_HOST}/{C:1}" appendQueryString="false" redirectType="SeeOther" />
</rule>
<rewriteMaps>      
      <rewriteMap name="HttpsRedirection">
                            <add key="/tiger/" value="tiger/" />
       </rewriteMap>
</rewriteMaps>    

This is almost word for word from my HTTPS redirection from another website, and it works fine.  Here is what I am getting with this one...

http://esri.tampagov.net     page cannot be displayed

https://esri.tampagov.net  works

http://esri.tampagov.net/tiger page cannot be displayed

https://esri.tampagov.net/tiger works, but this isn't using a redirect, it's just the full url.

Can anyone tell me what I am doing wrong? I have used so many variations of the code above I could never list them all, but this is the last one I tried.

Any help is greatly appreciated.

PS - I am using this in a test environment now... the url works in our production region (so if you go to the site above it works), but I am trying to get it working for the upgraded product.

 


Viewing all articles
Browse latest Browse all 27852

Trending Articles