Hi,
I wish to setup step 4 in this URL 10 URL Rewriting Tips and Tricks : Ruslan's Blog : The Official Microsoft IIS Site
I have got the following code in my web.conf file but when i try to get to the site i get error 500. When i remove the code this site works as usual.
Any thoughts please?Code:<?xml version="1.0" encoding="UTF-8"?> <configuration> <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> </configuration>
Thanks
EDIT: I have also tried this code with no luck.
ThanksCode:<?xml version="1.0" encoding="UTF-8"?> <configuration> <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> </configuration>


LinkBack URL
About LinkBacks


