Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Googlebot cannot access CSS and JS files?

Received aGoogle Search console warning - "Googlebot cannot access CSS and JS"

Mine robots.txt

User-agent: *
Disallow: /_System
Disallow: /bcas-homepage-slider
Disallow: /css
Disallow: /fonts
Disallow: /images
Disallow: /js
Disallow: /Layouts
Disallow: /Medigap logos
Disallow: /POST-IMAGES
Disallow: /products
Disallow: /professional-specialities
Disallow: /_backups
Disallow: /thank-you
Disallow: /stylesheets
Disallow: /source
Disallow: /Report
Disallow: /new

How to remove this warning?

like image 940
Regina Marsh Avatar asked Jan 08 '23 21:01

Regina Marsh


1 Answers

You need to edit your robots.txt file which is at the root directory of your site. Wherever there's a "Disallow" row, it means that you ask google bots not to crawl through those directories.

like image 73
Asaf David Avatar answered Jan 18 '23 10:01

Asaf David