Forum Moderators: Robert Charlton & goodroi
and input the code Options All -Indexes in htaccesshas nothing to do with Google, it disables the (usually unwanted) behavior of serving up a list of files in any directory visited. To prevent Google's indexing of files you do not want indexed the ideal solution is to noindex those directories or to disallow crawling in robots.txt. Just be aware that disallowing in robots.txt prevents access to resources that Google would need to evaluate your site. If the googlebot is not allowed to see your .css, .js and image files they can't really know how it will appear for visitors. The workaround is to disallow directories and then allow types of files.
Disallow: /wp-admin/
Disallow: /wp-content/
Disallow: /wp-includes/
Allow: /wp-content/*/*.jpg
Allow: /wp-includes/css/
Allow: /wp-includes/js/
Allow: /*.jpg
Allow: /*.png
Allow: /*.css
Allow: /*.js