How to move a site to HTTPs

Free SSL Certificate

Avahost.net provides free SSl certificates from COMODO. Comodo was founded in 1998. It is one of the leaders in the scope of free certificates. SSI certificates are primarily required for sites where important personal information is stored and transmitted — such as passwords, credit cards, bank account numbers, and so on.

Certificates are provided automatically and free of charge to all customers. But before installing it is desirable to prepare your site for correct work. To do this you need to check the links inside the site linking. For example //www.avahost.net/o-kompanii/ — absolute reference, / o-kompanii / — relative reference (relative, regardless of domain). Https://www.avahost.net/o-kompanii/ absolute, // o-kompanii / — relative (relative, regardless of the protocol) It is necessary to use links that exclude the name of the protocol. All pictures, all use of styles, scripts, counters and other should be done only through the https protocol. To do this you need to browse all the pages and templates of the site, and replace everywhere http to https.

You need also to add code in htaccess so that the visitor is automatically redirected to the ssl version of the site if he came to http.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

Search engines at the moment also prefer protected sites, which positively affects their promotion. After the SSL certificate is configured, it is advisable to report this for search engines in the webmaster’s toolbar.
After that check in the address bar of the browser that your site works through Https and all data is guaranteed to be protected.