0
Welcome Guest! Login
0 items Join Now

Googlebot cannot access gantry CSS and JS files

  • Googlebot cannot access gantry CSS and JS files

    Posted 8 years 9 months ago
    • The following issue has occured due to the location of the gantry/rockettheme CSS and JS files and locations blocked in the default joomla robots.txt file.
      Googlebot cannot access CSS and JS files
      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.

      Files at these locations are the issue.
      /components/com_roksprocket/assets/js/
      /components/com_roksprocket/layouts/features/themes/showcase/
      /components/com_roksprocket/layouts/features/assets/js/
      /libraries/gantry/css/
      /libraries/gantry/js/
      /libraries/gantry/assets/jui/fonts/font-awesome4/
      /modules/mod_rokajaxsearch/js/
      /modules/mod_roknavmenu/themes/default/js/
      /plugins/system/rokbox/assets/styles/
      /plugins/system/rokbox/assets/js/

      These files should be located in the /media/[your component] folder within joomla

      a temporary work around is to add the following to the robots.txt file following the user-agent line
      Allow: /components/com_roksprocket/assets/js/
      Allow: /components/com_roksprocket/layouts/features/themes/showcase/
      Allow: /components/com_roksprocket/layouts/features/assets/js/
      Allow: /libraries/gantry/css/
      Allow: /libraries/gantry/js/
      Allow: /libraries/gantry/assets/jui/fonts/font-awesome4/
      Allow: /modules/mod_rokajaxsearch/js/
      Allow: /modules/mod_roknavmenu/themes/default/js/
      Allow: /plugins/system/rokbox/assets/styles/
      Allow: /plugins/system/rokbox/assets/js/
    • Last Edit: 8 years 9 months ago by jtechmedical. Reason: it's the robots.txt file not the template
  • Re: Googlebot cannot access gantry CSS and JS files

    Posted 8 years 9 months ago
  • Re: Googlebot cannot access gantry CSS and JS files

    Posted 8 years 9 months ago
    • One of the comments from the Joomla magazine suggests the following change
      User-agent: Googlebot
      Allow: *.css
      Allow: *.js

      I still think the coding practice of useing the /media/[your component] folder for assets like .js and .css files is a better solution as it doesn't require users to modify their robots.txt file.
  • Re: Googlebot cannot access gantry CSS and JS files

    Posted 8 years 9 months ago
  • Re: Googlebot cannot access gantry CSS and JS files

    Posted 8 years 9 months ago

Time to create page: 0.049 seconds