SSL Identification by Google

0

Yesterday I migrated the website to another provider and won an SSL certificate, which has already been applied. I would like to know if Google will automatically identify that the site is now secure (https), because in the search, the result appears as "http".

I configured the .htaccess to redirect any request to the secure page:

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    
asked by anonymous 24.06.2017 / 14:41

1 answer

2

For Google, as other search engines detect the change, you must use Permanent redirect . / a>, which in the case is code 301 for HTTP, it is possible to apply it via .htaccess using the R=301 flag (the L flag is only to avoid conflicts with other RewriteRules ), also not sure , but I think the QSA flag is required if you have any page that makes use of querystring.

It's still important to note that Google does not reindex all pages at once, this can take weeks.

The .htaccess should look like this:

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]

Related:

24.06.2017 / 14:49