Self-installed Joomla!: Fix for “Googlebot can not access CSS and JS files” problem

If you are running a self-installed Joomla! website and you recently received an email from Google, telling you, that the Googlebot can not access certain CSS and JS files, here is your fix. (Info: Google requires access to these files, in order to assess whether a site is Mobile-Friendly …)

Websites installed with Joomla versions below 3.3.0 affected

Self-installed Joomla! Websites that were installed with Joomla! versions lower than 3.3.0 exclude access to some folders via the robots.txt. The Googlebot can not access files in these folders, which in turn leads to an error message by Google and may affect the Mobile-Friendly ranking.

Fix

To fix the problem you need to make a small adjustment to the robots.txt. The robots.txt is located in the root directory of your Joomla! installation.

  • Access your webspace using SFTP. (Learn how)
  • Open the robots.txt in the root directory of your Joomla! website.
  • Delete the following lines:
Disallow: / media /
Disallow: / templates /

Save the robots.txt and upload it to the root directory of your Joomla! website.

Please rate this post :

Leave a Reply

Your email address will not be published. Required fields are marked *