Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install the URL Rewrite Module for IIS: http://www.iis.net/downloads/microsoft/url-rewrite
  2. Require SSL must not be checked for either Default Web Site or for any application (ex: AdamsAdmin, AdamsWeb, AdamsBridge, etc) under that.  You can check the SSL Settings for each to see that it isn’t.
  3. Create the URL rewrite rules for the Default Web Site
  4. In IIS Manager select the Default Web Site
  5. In the IIS section, open the URL Rewrite module
    NOTE: If the URL Rewrite module does not appear as an option after installing it, try closing and reopening IIS Manager.
  6. Click Add Rule(s)…
  7. Select Inbound rules > Blank rule
  8. Select OK
  9. Fill in the following information
  10. Name - HTTP to HTTPS Redirect
  11. Match URL
    1. Requested URL - Matches the Pattern
    2. Using - Regular Expressions
    3. Pattern - (.*)
    4. Ignore case - checked
  12. Conditions
    1. Logical grouping: Match All
    2. Click Add…
      1. Condition input - {HTTPS}
      2. Check if input string - Matches the Pattern
      3. Pattern - ^OFF$
      4. Ignore case - checked
      5. Click OK
  13. Action
  14. Action type: Redirect
  15. Redirect URL:
  16. IIS Manager must be closed
  17. Add a web.config file to the web site's root directory (ex: wwwroot) with the below content or the configuration section only if the web.config already exists.

    Code Block
    languagexml
    titleweb.config
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    	<system.webServer>
    		<rewrite>
    			<rules>
    				<rule name="Redirect to HTTPS" enabled="true" stopProcessing="true">
    					<match url="(.*)" />
    					<conditions>
    						<add input="{HTTPS}" pattern="^OFF$" />
    					</conditions>
    					<action type="Redirect" url="https://{HTTP_HOST}
  18. {REQUEST_URI}
  19. Append query string: un-checked
  20. Redirect type: Permanent (301)
  21. Click Apply (in the upper hand corner)
  22. Click Back to Rules
  23. Restart the web application pool
  24. /{R:1}" redirectType="SeeOther" />
    				</rule>
    			</rules>
    		</rewrite>
    	</system.webServer>
    </configuration>


  25. Open IIS Manager
  26. Open Default Web Site → URL Rewite
  27. Select the "Redirect to HTTPS" rule and click Enable Rule

Require SSL/TLS

Require SSL/TLS/HTTPS for all apps.

...