Googlebot cannot access CSS and JS files
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
- DaveOzric
- Joomla! Ace
- Posts: 1591
- Joined: Sat May 22, 2010 10:29 pm
- Contact:
Re: Googlebot cannot access CSS and JS files
That's the fun part. Google blocks themselves and says we need to fix it. How in the heck do you allow a resource on their server via my robots.txt file?
- VThomas
- Joomla! Intern
- Posts: 75
- Joined: Tue Oct 23, 2007 2:49 pm
Re: Googlebot cannot access CSS and JS files
I may have removed one too many folders, but had some css in the cache, so this is the list I have for J2.5 site and google is happy today. :
User-agent: *
Disallow: /administrator/
Disallow: /cli/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /logs/
Disallow: /tmp/
Right now (weeks later), I don't recall why I removed modules and plugins folder. Should have taken better notes...
User-agent: *
Disallow: /administrator/
Disallow: /cli/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /logs/
Disallow: /tmp/
Right now (weeks later), I don't recall why I removed modules and plugins folder. Should have taken better notes...
Last edited by VThomas on Tue Jul 28, 2015 7:15 pm, edited 1 time in total.
An old dog can learn new tricks - I saw it on Mythbusters!
- DaveOzric
- Joomla! Ace
- Posts: 1591
- Joined: Sat May 22, 2010 10:29 pm
- Contact:
Re: Googlebot cannot access CSS and JS files
Yep, just need some clarification on what impact this will have on search results. Component folder is a must for the disallow but the modules & plugins folder????
Anyone?
Anyone?
- trogladyte
- Joomla! Guru
- Posts: 583
- Joined: Sat May 03, 2008 9:27 pm
- Location: Phoenix, AZ
- Contact:
Re: Googlebot cannot access CSS and JS files
Won't help them blocking their own resources, but just read this reply on a Google groups forum that may help everyone.
Hmmm, sounded brilliant, but didn't work for me.I have the same problem! I have been advised to add to my robot txt file:
Allow: *.css
Allow: *.js
Hope it works.
Ian Shere - Phoenix Website Design & Hosting
http://www.citruskiwi.com
Certified Flight Instructor http://www.flygoodyear.com
http://www.citruskiwi.com
Certified Flight Instructor http://www.flygoodyear.com
- billedwin
- Joomla! Fledgling
- Posts: 1
- Joined: Thu May 13, 2010 8:15 pm
- Contact:
Re: Googlebot cannot access CSS and JS files
I believe google want access to the media folder.
This is the new Joomla 3.5.3
As you can see the media folder does not appear on the new robots.txt file
User-agent: *
Disallow: /administrator/
Disallow: /bin/
Disallow: /cache/
Disallow: /cli/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /layouts/
Disallow: /libraries/
Disallow: /logs/
Disallow: /modules/
Disallow: /plugins/
Disallow: /tmp/
This is the new Joomla 3.5.3
As you can see the media folder does not appear on the new robots.txt file
User-agent: *
Disallow: /administrator/
Disallow: /bin/
Disallow: /cache/
Disallow: /cli/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /layouts/
Disallow: /libraries/
Disallow: /logs/
Disallow: /modules/
Disallow: /plugins/
Disallow: /tmp/
-
- Joomla! Apprentice
- Posts: 9
- Joined: Sat Mar 21, 2015 11:00 pm
Re: Googlebot cannot access CSS and JS files
Nothing new in the article but Search Engine Land reported on it: http://searchengineland.com/google-sear ... css-226227.
So this happened today and SEL reported on it today. That means that Mashable will report on it... Friday?
This article actually has some useful info:
http://www.thesempost.com/new-google-se ... -js-files/
So this happened today and SEL reported on it today. That means that Mashable will report on it... Friday?
This article actually has some useful info:
http://www.thesempost.com/new-google-se ... -js-files/
Last edited by HunterWillis on Tue Jul 28, 2015 9:59 pm, edited 1 time in total.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Sat Mar 21, 2015 11:00 pm
Re: Googlebot cannot access CSS and JS files
Try this and see if it works for you:
#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js
# global
User-agent: *
Disallow: /administrator/
Disallow: /includes/
Disallow: /[ANY OTHER DIRECTORY YOU SEE FIT]
#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js
# global
User-agent: *
Disallow: /administrator/
Disallow: /includes/
Disallow: /[ANY OTHER DIRECTORY YOU SEE FIT]
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Jul 13, 2011 2:02 am
Re: Googlebot cannot access CSS and JS files
Thanks HunterWillis this worked for me. Now the only pages Google is complaining that it can't access are it's own maps pages haha,HunterWillis wrote:Try this and see if it works for you:
#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js
# global
User-agent: *
Disallow: /administrator/
Disallow: /includes/
Disallow: /[ANY OTHER DIRECTORY YOU SEE FIT]
-
- Joomla! Intern
- Posts: 51
- Joined: Sat Oct 01, 2011 1:55 pm
Re: Googlebot cannot access CSS and JS files
Not a specialist but would that work?
Code: Select all
User-agent: Googlebot
Allow: /plugins/ *.css
Allow: /plugins/*.js
Allow: /modules/ *.css
Allow: /modules/*.js
-
- Joomla! Intern
- Posts: 72
- Joined: Fri Feb 09, 2007 4:38 pm
Re: Googlebot cannot access CSS and JS files
This is definitely a part of Panda. This is an issue I noticed but thought little of as there seemed to be no decline in rankings on mobile since all of our client sites are responsive. I was reviewing the rendering and noted that it was text only on our Joomla clients. Now I know why - the JS and CSS isn't being indexed.
I also noticed I haven't had a full crawl on a Joomla site recently and it has been nauseating.
Does this mean that Joomla (and WP) needs to move the JS and CSS files to a root directory like /public_html/css and js?
I also noticed I haven't had a full crawl on a Joomla site recently and it has been nauseating.
Does this mean that Joomla (and WP) needs to move the JS and CSS files to a root directory like /public_html/css and js?
President/Owner of First Page Media
http://www.firstpagemedia.com | 888-732-2215
http://www.firstpagemedia.com | 888-732-2215
-
- Joomla! Intern
- Posts: 72
- Joined: Fri Feb 09, 2007 4:38 pm
Re: Googlebot cannot access CSS and JS files
One temporary workaround would be this fun addendum ...
User-agent: *
Disallow: /administrator/
Disallow: /bin/
Disallow: /cache/
Disallow: /cli/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /layouts/
Disallow: /libraries/
Disallow: /logs/
Disallow: /media/
Disallow: /modules/
Disallow: /plugins/
Disallow: /templates/
Disallow: /tmp/
Disallow: /media/jui/
Allow: /media/jui/css
Allow: /media/jui/js
User-agent: *
Disallow: /administrator/
Disallow: /bin/
Disallow: /cache/
Disallow: /cli/
Disallow: /components/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /layouts/
Disallow: /libraries/
Disallow: /logs/
Disallow: /media/
Disallow: /modules/
Disallow: /plugins/
Disallow: /templates/
Disallow: /tmp/
Disallow: /media/jui/
Allow: /media/jui/css
Allow: /media/jui/js
President/Owner of First Page Media
http://www.firstpagemedia.com | 888-732-2215
http://www.firstpagemedia.com | 888-732-2215
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Sep 18, 2013 8:19 pm
Re: Googlebot cannot access CSS and JS files
This video https://www.[youtube].com/watch?v=6Io2tH-guRI recommends:
#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js
#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js
-
- Joomla! Intern
- Posts: 51
- Joined: Sat Oct 01, 2011 1:55 pm
Re: Googlebot cannot access CSS and JS files
cyberrider wrote:This video https://www.[[youtube]].com/watch?v=6Io2tH-guRI recommends:
#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js
but it this going to overrride the
?Disallow: /modules/
Disallow: /plugins/
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Sep 18, 2013 8:19 pm
Re: Googlebot cannot access CSS and JS files
Yes, but just for Googlebot and just for .js and .css filesgenegun wrote: but it this going to overrride the?Disallow: /modules/
Disallow: /plugins/
- grafixpro
- Joomla! Apprentice
- Posts: 44
- Joined: Mon Feb 27, 2006 9:50 pm
Re: Googlebot cannot access CSS and JS files
I have implemented the changes that cyberrider suggested and got a "complete" status so that seemed to help.
I searched first, I swear I did...
J3.9+ / PHP Version 7.1 / Linux 2.6.32 / Apache/2.4.33 / MySQLi 5.6.43
/G\
J3.9+ / PHP Version 7.1 / Linux 2.6.32 / Apache/2.4.33 / MySQLi 5.6.43
/G\
-
- Joomla! Enthusiast
- Posts: 112
- Joined: Mon Mar 14, 2011 10:15 am
- Location: UK
- Contact:
Re: Googlebot cannot access CSS and JS files
I too just added:
And that got me from Partial to Complete status.
Code: Select all
#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js
- ribo
- Joomla! Virtuoso
- Posts: 3507
- Joined: Sun Jan 03, 2010 8:47 pm
- Contact:
Re: Googlebot cannot access CSS and JS files
if we will put
will this solve our issue?
Code: Select all
Allow: *.css
Allow: *.js
chat room spontes : http://www.spontes.com
- ribo
- Joomla! Virtuoso
- Posts: 3507
- Joined: Sun Jan 03, 2010 8:47 pm
- Contact:
Re: Googlebot cannot access CSS and JS files
google blocks css and js in folders components, modules and plugins and as i saw this on robots.txt
My question is this will impact positive or negative in search results?
allow css and js in googlecyberrider wrote: #Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js
My question is this will impact positive or negative in search results?
chat room spontes : http://www.spontes.com
- ribo
- Joomla! Virtuoso
- Posts: 3507
- Joined: Sun Jan 03, 2010 8:47 pm
- Contact:
Re: Googlebot cannot access CSS and JS files
also i had this warning
Fix mobile usability issues found on http://www.zante-celebrations.gr/
To: Webmaster of
Google systems have tested 4 pages from your site and found that 50% of them have critical mobile usability errors. The errors on these 2 pages severely affect how mobile users are able to experience your website. These pages will not be seen as mobile-friendly by Google Search, and will therefore be displayed and ranked appropriately for smartphone users.
Fix this now:
1
Find problematic pages
View a report of the non-mobile-friendly pages found on your site, and the issues discovered
View a report
2
Learn about mobile-friendly design
There are a variety of techniques you can use to make your site mobile-friendly. Specifically, look for information about the issues brought up in Search Console
make your site mobile-friendly
3
Fix mobile usability issues on your site
Fix the issues preventing your site from being mobile-friendly
When i was view a report the non-mobile-friendly pages the google not see a mobile friendly some pages.
So when i allowed now css and js files in robots.txt the report of google see that pages mobile friendly.
Fix mobile usability issues found on http://www.zante-celebrations.gr/
To: Webmaster of
Google systems have tested 4 pages from your site and found that 50% of them have critical mobile usability errors. The errors on these 2 pages severely affect how mobile users are able to experience your website. These pages will not be seen as mobile-friendly by Google Search, and will therefore be displayed and ranked appropriately for smartphone users.
Fix this now:
1
Find problematic pages
View a report of the non-mobile-friendly pages found on your site, and the issues discovered
View a report
2
Learn about mobile-friendly design
There are a variety of techniques you can use to make your site mobile-friendly. Specifically, look for information about the issues brought up in Search Console
make your site mobile-friendly
3
Fix mobile usability issues on your site
Fix the issues preventing your site from being mobile-friendly
When i was view a report the non-mobile-friendly pages the google not see a mobile friendly some pages.
So when i allowed now css and js files in robots.txt the report of google see that pages mobile friendly.
chat room spontes : http://www.spontes.com
-
- Joomla! Apprentice
- Posts: 10
- Joined: Tue May 19, 2015 4:23 pm
Re: Googlebot cannot access CSS and JS files
My site has a file called robots.txt.dist as well as robots.txt
Do I have to add the googlebot allow commands to both files?
When I retest I'm also getting a 'partial' result and when I look to see why there are items described as 'temporarily unreachable'. DO I need to do something about these or just wait and re-test?
Do I have to add the googlebot allow commands to both files?
When I retest I'm also getting a 'partial' result and when I look to see why there are items described as 'temporarily unreachable'. DO I need to do something about these or just wait and re-test?
- ribo
- Joomla! Virtuoso
- Posts: 3507
- Joined: Sun Jan 03, 2010 8:47 pm
- Contact:
Re: Googlebot cannot access CSS and JS files
No need to put it in robots.txt.dist. just put what @cyberrider and @ HunterWillis said in robots.txt.
After check in google webmaster tools for blocked resources and do what it says to fix it. When you update robots.txt from GWT it takes 1-2 minutes to update it. check it
After check in google webmaster tools for blocked resources and do what it says to fix it. When you update robots.txt from GWT it takes 1-2 minutes to update it. check it
chat room spontes : http://www.spontes.com
-
- Joomla! Apprentice
- Posts: 34
- Joined: Wed Oct 25, 2006 10:02 pm
Re: Googlebot cannot access CSS and JS files
This should really work.HunterWillis wrote:Try this and see if it works for you:
#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js
# global
User-agent: *
Disallow: /administrator/
Disallow: /includes/
Disallow: /[ANY OTHER DIRECTORY YOU SEE FIT]
The only scripts, css which will be blocked are external ones - for ex. like twitter js, facebook .js, so on...
- Chacapamac
- Joomla! Ace
- Posts: 1088
- Joined: Wed Feb 20, 2008 6:50 am
- Location: Canada, Montreal
- Contact:
Re: Googlebot cannot access CSS and JS files
Code: Select all
#Googlebot
User-agent: Googlebot
Allow: *.css
Allow: *.js