There is example.com site. It connects css and js files from static.example.com. Should I add example.com to Google Search Console, or are there any settings for such cases? The fact is that when he scans the pages of the site with a googlebot, he doesn’t see it correctly due to the fact that styles are connected from a subdomain. Maybe someone has encountered such a problem? In Google and in Habré I did not find a solution, because I do not know what query I can find.
3 answers
If example.com is the main page of your site, i.e. this index, it is recommended to add it to the Google Search Console. To connect styles, specify a direct link, for example <link rel=stylesheet href=style.css /> . Info google Your comments : " 1) After all, these subdomains do not have html files. Would it be correct to add them if they consist only of css and js files ." Subdomains may have html files, for example, the subdomain home page: de.main.html " 2) I totally disagree with you on this. Google said that mobile-friendly has a serious effect on website ranking. Consequently, styles are important for SEO ." For search engine optimization, not styles are important, but the ability for users to view your site on mobile devices.
- If the styles are not loaded, the site becomes not "mobile-friendly". Consequently, styles are important. There is nothing to argue. There are articles about it. can read. Yes, and without articles you can come to this conclusion. CEP, I know about the link. but it turned out that the whole thing is robots. I fixed it in the subdomains and it all worked. And without this, the pages were considered not "mobile-friendly" - Hasanagha Aliyev
- Google recommends adding subdomains that you would like to track.
- Styles and their source should not affect indexing.
- 1) After all, these subdomains do not have html files. Unless it will be correct to add them if they consist only of css and js files 2) I completely disagree with you on this. Google said that mobile-friendly has a serious impact on the ranking of the site. Consequently, styles are important for SEO - Hasanagha Aliyev
- @HasanaghaAliyev 1. It doesn't matter how your server part is organized. html files may not be at all. 2. Confuse ranking and indexing. Perhaps styles can affect indexing if you make all the text in white (that is, invisible), but this is another topic called manipulating search algorithms. - user208916
- no, I'm not confusing .. the styles influence the ranking .. for example, if the buttons are too close or the size of the element exceeds the screen size of the gadget, then the site becomes non-mobile-friendly and for this reason the ranking falls lower than those sites that do not have this problem (Of course, other factors also affect the ranking, and this is just one of them) - Hasanagha Aliyev
Added a robots.txt subdomain and indicated Allow: * .css. After that, the site began to display correctly in services such as "View as Googlebot".