praveen1981
asked on
Url redirect
Hi
I have the following domain , now i have assigned ssl certificate and made the bindings available for both http and https
domain : aa.andr.ind.com
url: http://aa.andr.ind.com
and i am Using the following in web.config , and IIS 7.5 version.
</system.webServer>
<rewrite>
<rules>
<rule name="Redirect to HTTPS" 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>
but it is not redirecting to https://aa.andr.ind.com when i typed aa.andr.ind.com in browser, could you please say me what the problem with above configuration/Coding.
Many thanks.
I have the following domain , now i have assigned ssl certificate and made the bindings available for both http and https
domain : aa.andr.ind.com
url: http://aa.andr.ind.com
and i am Using the following in web.config , and IIS 7.5 version.
</system.webServer>
<rewrite>
<rules>
<rule name="Redirect to HTTPS" 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>
but it is not redirecting to https://aa.andr.ind.com when i typed aa.andr.ind.com in browser, could you please say me what the problem with above configuration/Coding.
Many thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi saige,
I have used the same as you suggested , but still no use.
is there any thing need to added ?
I have used the same as you suggested , but still no use.
is there any thing need to added ?
ASKER
Hi Saige,
Many thanks, now it working perfectly.
Many thanks, now it working perfectly.
ASKER
Many thanks
Remove the unnecessary / from the first entry.