Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to redirect http:// to https://

with this code

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


but instead of 403.4; i am getting 404(Page not found);
help me out
Posted
Updated 17-Aug-12 5:14am
v4
Comments
Caleb McElrath 17-Aug-12 10:40am    
Just a note: There is something to be said for politeness.
Sergey Alexandrovich Kryukov 17-Aug-12 12:50pm    
Forget politeness for now; just ask a question... :-)
--SA

1 solution

have a look on scenario 1...

http://support.microsoft.com/kb/975341[^]
 
Share this answer
 

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



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