Mobile app version of vmapp.org
Login or Join
LarsenBagley505

: Google Webmasters Blocked Resources/Robots.txt File? For some reason Google Webmaster Tools insists that pretty much all js and css resources are blocked on every page of my website and when I

@LarsenBagley505

Posted in: #GoogleSearchConsole #RobotsTxt

For some reason Google Webmaster Tools insists that pretty much all js and css resources are blocked on every page of my website and when I try to render my pages in GWT they will only partially render. However, I have placed all of the following in my robots.txt file:

User-agent: Googlebot
Allow: /*.css$
Allow: /*.js$
Allow: /js
Allow: /css
Allow: .js
Allow: .css
Allow: /js/wow
Allow: /js/stellar


Can anyone tell me why Google is apparently ignoring commands in my robots.txt and how I can correct it?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @LarsenBagley505

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

You may have directories in folders that are blocked.
That being the possible case, as you are not mentioning what is blocked, I would use something like this. This way allows you to block subfolders and allow crawling of the folders rooted in the blocked directories.

User-agent: *
Disallow: /admin/
Disallow: /blocked-folder/

User-agent: Googlebot
Allow: /blocked-folder/css/
Allow: /blocked-folder/js/


Updated: Try this based on your code.



<script>
<script async src="js/jquery.js">
<script async src="js/jquery-migrate-1.2.1.js">
<script async src="js/owl.carousel.min.js">
<script async src="js/jquery.fancybox.pack.js">

<!--[if (gt IE 9)|!(IE)]><!-->
<script async src="js/wow/wow.js">

$(document).ready(function () { if ($('html').hasClass('desktop')) { new WOW().init(); } });
</script>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme