Joomla error Googlebot cannot access CSS and JS files

Published: 28 July 2015
on channel: Easy Web Design
928
8

Joomla 1.5, 2.5 and Joomla 3 are all affected by this error and being contacted by Google with a message saying:

"Google systems have recently detected an issue with your homepage that affects how well our algorithms render and index your content. Specifically, Googlebot cannot access your JavaScript and/or CSS files because of restrictions in your robots.txt file. These files help Google understand that your website works properly so blocking access to these assets can result in suboptimal rankings."

This error is caused by the robots.txt file in Joomla installations, which blocks access to the Google Bot to certain key files.

We can't simply give googlebot access to all files in Joomla, as this would cause Joomla system files to be displayed in Google search results - which if nothing else would be bad for SEO.

The solution is to add the following to the top of your robots.txt file in the main file directory of your Joomla installation:

#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js


Watch video Joomla error Googlebot cannot access CSS and JS files online without registration, duration hours minute second in high quality. This video was added by user Easy Web Design 28 July 2015, don't forget to share it with your friends and acquaintances, it has been viewed on our site 928 once and liked it 8 people.