Answer the question
In order to leave comments, you need to log in
When the online store is switched to https, the favicon.ico icon is no longer displayed in Yandex. How to return the display?
I really don't want to move back because of this. How to be?
Answer the question
In order to leave comments, you need to log in
You should make sure that when transmitting a favicon, the HTTP headers returned by the web server specify the correct type of transmitted data — Content-Type:
image/x-icon or images/vnd.microsoft.icon for the ICO format;
That's what it says in the template. But the fact is that now the icon is available only as https://site.ru/favicon.ico
When accessed via http, a 301 redirect occurs. As far as I know, Yandex does not index pictures over SSL. Is it possible to replace the icon with png and register access as
https://site.ru/favicon.png , will it be displayed? Or is there another way?
When switching to https, it would be more correct to leave all images that should be indexed on http.
Here, on Alaich's blog , there is an excellent comment that gives an elegant solution to the issue.
I'll quote it here for convenience:
I found an elegant solution to configure the server to issue two different robots.txt for different versions of the site
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^robots\.txt$ robots_ssl.txt [L]
more details here (in English) www.creare.co .uk/http-vs-https-duplicate-content
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question