robots.txt is blocking google from rendering my mobile theme properly
-
Hi, i am totally new to robots.txt, no wonder, it’s a normally non visible file.
I have 2 sites using both the same totally mobile friendly theme.
The theme that google says is 100% mobile friendly has only this
User-agent: *
Disallow: /wp-admin/
in the robots.txt,
whereas the other site is NOT MOBILE FRIENDLY and has plenty else …
User-agent: *
Disallow: /wp-admin/
Disallow: */xmlrpc.php
Disallow: */wp-*.php
Disallow: */trackback/
Disallow: *?wptheme=
Disallow: *?comments=
Disallow: *?replytocom
Disallow: */comment-page-
Disallow: *?s=
Disallow: */wp-content/
Allow: */wp-content/uploads/Could anyone let me know which of the disallowed elements would have to be allowed or changed or removed or replaced to give Google access to all css and js files on this site without risking security of the site??
I found something that points to adding special access to Google only (if i understand this right)
User-agent: Mediapartners-Google*
Allow: /User-agent: Googlebot-Image
Allow: /wp-content/uploads/User-agent: Adsbot-Google
Allow: /User-agent: Googlebot-Mobile
Allow: /
but it seems 2 of the above are for google ads (?) which i don’t run.Also, since this robots file is not visible with FTP, how to edit and than install it properly so that there will be no issue with the virtual robots file from WordPress??
- The topic ‘robots.txt is blocking google from rendering my mobile theme properly’ is closed to new replies.