Tonight I was playing with ways to redirect http request to https on a SharePoint 2010 server and the best way I found was to use URLRewrite 2.0 as I am on Server 2008 R2. If you need to install you open Server Manager > Expand Roles and then click Web Server. In the main Web Server pane you scroll down to the Add Role Services and browse to HTTP Redirection (under Common HTTP Features)

 

Once opened click Add Rules and I choose to create Blank inbound rule and give it some meaningful name.

 

Is the “Match URL” configuration box you will configure the following settings:

1

Requested URL: Matches the Pattern
Using: Regular Expressions
Pattern: (.*)

 

 

In the “Condition” configuration box you will configure the following settings:

Press “Add” to add a new condition to the configuration.

 

2

You will then configure these following settings:
Condition Input: {HTTPS}
Check if input string: Matches the Pattern
Pattern: ^OFF$
Then Press “OK”

 

 

Is the “Action” configuration box you will configure the following settings:

3

You will then configure the following settings:
Action Type: Redirect
Redirect URL: https://{HTTP_HOST}/{R:1}
Redirect Type: See Other (303)

 

    • For me it didn’t work as I had previously had Require SSL in IIS so start there if you have any problems. After I unchecked that box everything worked.
  • You have to remember to have to full url on the internet DNS server for local users…  intranet.domain.com pointing to the internal IP

 

  • You can also make a now redirect that redirects users from http://intranet to https://intranet.domain.com

 

Skrifaðu nú skemmtilegar og jákvæðar athugasemd

athugasemdir