hometriangle-righttriangle-leftmenu3

Https - Part 1: Convert site from http to https

 
Setting up SNI

Open IIS
Import server certificate as usual
Edit Bindings for target site                                               

Add binding:

  • Type: https
  • Port 443
  • Select server IP (212.48.74.102 for hs01)
  • Host name: www.site.com
  • Select relevant SSL certificate

 

1) Revise cart process to execute at https://www.domain.co.uk/....

- Set up secure path in config to https://www.domain.co.uk

- Set up home path in config to use the secure path.

2) Set https://www.domain.co.uk as base URL in webmaster tools

-          Add and verify https version of the site
-          Once verified- go to property
-          Settings (cog top right) > Site Settings
-          Under preferred domain select the www variant.

3) Configure VS to suit

-  Ensure bindings are there for all variants (www / non www / https/ http )

4) 301 as required to re-direct existing non-secure pages to their SSL equivalents

Add the following to the web.config - you can test this using httpstatus.io (check all variants)

<rewrite>
    <rules>
        <rule name="HTTP Redirect to HTTPS" enabled="true" stopProcessing="true">
            <match url="(.*)" ignoreCase="false" />
            <conditions>
                <add input="{HTTPS}" pattern="off" />
            </conditions>
            <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
        </rule>
    </rules>
</rewrite>

5) Mail Setup

Add a virtual directory "mail" in site root.

Add App pool permissions (for db: full, for vs: read) to the 1668mail directory (in DB and VS)

Modify scripts to point at the new url: <%=relPath%>mail/send.asp

CE