-
AuthorPosts
-
September 12, 2016 at 10:34 pm #685399
I am using multisite subdomain wordpress with robots.txt on root folder
User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /*?*
Disallow: /*?
Allow: /wp-content/uploadsBut i am still able to access paths like
https://site1.domain.com/wp-content/themes/theme/framework/images/icons/
I tried using googlebot as user agent and the directories are still accessible-
This topic was modified 9 years, 1 month ago by
andrew484.
September 15, 2016 at 6:08 am #686705Its been 2 days and the thread is buried under 10+ pages with no response.
Please reply. Thanks
September 15, 2016 at 6:13 am #686708A robots.txt does not prohibit access to a path. As long as google does not list your icon you shouldn’t worry about.tests simulating googlebot agents which is never the same as google.
September 15, 2016 at 6:24 am #686717Hi!
Thank you for using Enfold.
Directory blocking should be done in the .htaccess files, not the robot.txt file. It will only block or disallow search engine crawlers. And you should not disallow the listed directories because they contain important scripts and stylesheets.
Related thread: http://stackoverflow.com/questions/9282124/deny-direct-access-to-a-folder-and-file-by-htaccess
Best regards,
IsmaelSeptember 15, 2016 at 6:27 am #686721Hi!
I might have misunderstood the issue, regardless, you should not disallow those folders. Crawlers need those files (scripts and stylesheets) to render or read the site properly.
// https://yoast.com/wordpress-robots-txt-example/
// https://yoast.com/dont-block-your-css-and-js-files/Regards,
IsmaelOctober 3, 2016 at 7:39 pm #694752Ok whatever, I will remove those rules from robots.txt.
Can you please suggest me a solution to stop google from indexing those resources ?October 4, 2016 at 7:18 am #694894 -
This topic was modified 9 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
