New Googlebot cannot access CSS and JS files in Google Search Console

13
2.1K followers
Updated

Hello,

In July, this article has been published:

http://www.thesempost.com/new-google-search-consol...

After publishing this info is added;
Added: It looks like many are getting warnings from having “Disallow: /wp-content/plugins/” which can be blocked with some WordPress setups. If you use Yoast SEO, you can find the robots.txt in its new location here: SEO / Tools / Files.

But as we know it is the best-practice to use Disallow: /wp-content/plugins/ in the robots.txt

After some research a simple solution is provided, you just add the following to your robots.txt and you leave the "Disallow Plugins as is"

User-Agent: Googlebot
Allow: /*.js*
Allow: /*.css*

You will see in your search console that all errors concerning CSS and JS will disappear one by one (depending on how fast Google crawls your pages).

But an immediate test can be done with the robots.txt tester in the seach console where you will see that there are no Errors or Warnings...

I hope this helps...

Grtz,
Bert

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training

Recent Comments

14

Hi Bert, to which line should I add this? Just after all the existing infos?

I send you mine with a PM...

Thanks!

Great Post Bert!

Thanks!

You are full of excellent information :-)
Thank you Bert!

Thank you for the comment KrazyKat!
Stay tuned for more information like this.... ;-)

This is great information and quick to handle with a sure solution! Thanks for sharing!

:-)

With a lot of pleasure TA...

Thanks Bert. I need information like this. I saved to bookmark.
Marilyn

Your most welcome Marilyn!

More great info, cheers Bert.

We will see what's next...
Thanks for your comment, David!

See more comments

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training