hello all citizens dp. I have a question that is precisely why my website when I checked in google mobile friendly test do not show the entirety of my website to see it because I block some sources robots txt. How can I fix this without making changes to the robots.txt. From several sources I read that now do not have to block as wp-admin and wp-include.
Yes i saw my website is mobile friendly and when i also see google serp it is mobile friendly too. But when i read this https://yoast.com/wordpress-robots-txt-example/ What do you think about it?
I use the default robots.txt on my sites User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Code (markup): If you have a plugin that is messing with the file then you may need to review the settings or consider ditching the plugin altogether. It's logical that if you prevent non-human traffic to your site and then as a non-human tool to tell you what your site looks like that the non-human output might not be what you expect. Care to share your robots.txt file?
This my robot txt sitemap: http://desainavirss.com/sitemap.xml User-agent: * # disallow all files in these directories Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /cgi-bin/ Disallow: /wp-content/ Disallow: /archives/ Disallow: /*?* Disallow: *?replytocom Disallow: /author/ Disallow: /search/ Disallow: /comments/feed/ Disallow: */trackback/ Disallow: /wp-* Disallow: /*?* User-agent:Mediapartners-Google* Allow:/ User-agent:Googlebot-Image Allow:/wp-content/uploads/ User-agent:Adsbot-Google Allow:/ User-agent:Googlebot-Mobile Allow:/ Code (markup):
And here's your problem Disallow: /wp-content/ What tool created that file? What options does it give you? I'd actually stop being paranoid and just go back to the default robots.txt and play it safe.
"best" is very subjective but I've given you the default for wordpress it basically shuts down access to the admin folder while still giving access to the ajax content.
You are disallowing google from reading wp-content, thats all your images and media! you want them to crawl that.