url - IIS7 HTTP to HTTPS Redirection -


i having difficulty redirecting users https using iis7. i've tried following steps outlined on variety of sites include editing web.config, url rewrite module, , custom error pages. i've found best technique use url rewrite doesn't seem working expected. here information regarding environment. new please bear me.

currently, have sql reports can viewed navigating to: reports.domain.us. redirects user http://reports.domain.us/reports/pages/folder.aspx.

currently, there rule in iis under http redirect redirects requests "/reports". here web.conf looks before url rewrite rules applied:

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.webserver>         <httpredirect enabled="true" destination="/reports" />     </system.webserver> </configuration> 

after applying rule, web.conf

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.webserver>         <httpredirect enabled="true" destination="/reports" />         <rewrite>             <rules>                 <rule name="http https" enabled="false" 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>     </system.webserver> </configuration> 

now when try implementing https redirection, acts funky , never works. example, after applying rules, when try navigate reports.domain.us, url changes reports.domain.us/reports/reports/reports/reports/reports...it seems missing something. again, new iis7 , manipulating sites. wondering if shed light on issue. ive followed steps given here no luck. http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/ ive made sure ssl settings , bindings correct.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -