Googlebot cannot access CSS and JS files

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
7/29/2015 5:05:16 PM
Gravatar
Total Posts 28

Googlebot cannot access CSS and JS files

Hi Joe,

We hope all is well. Recently, we received a number of emails from Google regarding sites built on mojo.  It's simply: "Googlebot cannot access CSS and JS files on ... ." Apparently, this could affect search rankings for sites.

We ran some tests, and it seems Google is having a hangup with any CSS or JS created dynamically. Specifically, Webmaster Tools is pointing to the ScriptResource.axd file. We know that in the robots.txt file at the root level of our mojo installations, this file (as well as all those with an .axd extension) are disallowed.

We were hoping you could possibly explain why this is, and if there's any reason why we couldn't/shouldn't allow it.

Thanks. As always, we appreciate your time.

7/29/2015 6:53:01 PM
Gravatar
Total Posts 18439

Re: Googlebot cannot access CSS and JS files

back in the old days it was recommended to block css and jss from robots.txt, but times have changed

if you look in the robots.txt file in the root of the site you will find things that block skin files and css and js

you should remove those items to solve the problem. we've also updated the robots.txt that will ship next time we update mojoportal so it won't block those things.

Hope that helps,

Joe

7/30/2015 7:57:13 AM
Gravatar
Total Posts 28

Re: Googlebot cannot access CSS and JS files

Thanks, Joe. We appreciate the prompt response, as always.

You must sign in to post in the forums. This thread is closed to new posts.