All websites hosted on AVA.HOSTING can use the secure https (SSL) protocol.
We provide free SSL certificates for all clients automatically (installation on new domains takes 1-3 hours).


If you have an old site that previously worked using the http:// protocol, then it is advisable to do the following to switch to https:

To completely switch to HTTPS, all media content of the site, pictures, videos, scripts, styles must be translated into relative addresses or https:// addresses, the same applies to external scripts (all external counters, advertising codes, etc.).

After the SSL certificate is installed, the site needs to be configured so that search engines perceive the https site as the main one when searching.
You must specify the Host directive in the robots.txt file. For example, Host: https://ava.hosting/ 
and install a 301 redirect from http to https. To do this, you need to add code in the htaccess file.

Options:

1.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

2.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

3.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

After setting up the site, it is advisable to inform search engines that you have an SSL certificate installed and configured. This is done in the webmaster panel of both Google and Yandex.
This needs to be done so as not to lose part of the search traffic to your site.

 

War diese Antwort hilfreich? 1 Benutzer fanden dies hilfreich (1 Stimmen)