Answered by:
HTTP to HTTPS Redirection

Question
-
We need to redirect all HTTP traffic to HTTPS to allow for external access to the company SharePoint site. I would like to use the Rewrite tool for IIS 7.5, but am running into issues.
Both http and https sites work (AAMs configured for HTTP and HTTPS), but when enabling the redirection rule, we receive a 404 not found error. The rewrite rule is written as follows:
<rewrite> <rules> <rule name="HTTPS to HTTPS Redirection" enabled="false"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="^OFF$" /> </conditions> <action type="Rewrite" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite>
Thank you for any assistance that you can provide!-Drew
Thursday, May 17, 2012 2:49 PM
Answers
-
try this maybe it's usefull
http://onlinecoder.blogspot.com/2011/03/iis-url-rewrite-module-redirect-http-to.html
Regards,
Fadi Abdulwahab, SharePoint Consultant
http://blogs.msdn.com/b/fabdulwahab
http://sqlgoogler.blogspot.com/- Marked as answer by Drew Heath Thursday, May 17, 2012 7:49 PM
Thursday, May 17, 2012 3:06 PM
All replies
-
try this maybe it's usefull
http://onlinecoder.blogspot.com/2011/03/iis-url-rewrite-module-redirect-http-to.html
Regards,
Fadi Abdulwahab, SharePoint Consultant
http://blogs.msdn.com/b/fabdulwahab
http://sqlgoogler.blogspot.com/- Marked as answer by Drew Heath Thursday, May 17, 2012 7:49 PM
Thursday, May 17, 2012 3:06 PM -
Hi Drew, I'm sure I'm missing something, but I think you could use just AAM. If your goal is to make all users browse your site via HTTPS you can map the https url as default url and add a second entry in the same zone for the http URL.
Cheers
Riccardo- Proposed as answer by Brian T. Shell Thursday, May 17, 2012 3:54 PM
Thursday, May 17, 2012 3:20 PM -
I have the HTTPS URLs currently in the default zone. I tried to move the HTTP versions to the Intranet zone but was not allowed by SharePoint.
Is there a different way to manage the AAM or am I missing something?
-Drew
Thursday, May 17, 2012 4:57 PM -
try this maybe it's usefull
http://onlinecoder.blogspot.com/2011/03/iis-url-rewrite-module-redirect-http-to.html
Regards,
Fadi Abdulwahab, SharePoint Consultant
http://blogs.msdn.com/b/fabdulwahab
http://sqlgoogler.blogspot.com/
The link in this showed the rewrite rule being set to "Redirect" instead of "Rewrite". This resolved our issue, thank you so much!
-Drew
Thursday, May 17, 2012 7:50 PM