Google cannot access CSS and JS files on your website

Some had issues following the email sent by Google Search Console: Google cannot access CSS and JS files on your website.

This email was notifying you that Google Bot was not able to crawl CSS and JS files on your website.

This is because of some restrictions in your robots.txt file.
To solve your issue, you should add the following lines in your robots.txt:

Allow: /*.js$
Allow: /*.css$
If you don’t have a robots.txt in the root folder of your WordPress installation, you should create it with this content:

User-agent: *
Disallow: /wp-admin/
Allow: /*.js$
Allow: /*.css$
For further information about this alert, we recommend you  read this post : How To Fix Googlebot Cannot Access CSS & JS Warning

Have a great day!

Advertisements

Leave a Reply :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s