Forum Moderators: Robert Charlton & goodroi
[edited by: goodroi at 3:54 pm (utc) on Dec 3, 2019]
[edit reason] Examplified [/edit]
Disallow:/wp-includes/should have a space as in
Disallow: /wp-includes/
Sitemap: http://example.com/sitemap.xmldid you mean the http: part or should that be
Sitemap: https://example.com/sitemap.xmlIt is a lot easier to go to https when you are setting up a new site, especially one that includes WP, than to go back and make all the changes to switch to https: if it can be changed before your first URL.
Disallow: /wp-admin/Are these two directories ever visibly linked (that is, visible to a robot, not necesssarily to a human) from publicly accessible pages? If not, the lines would seem to be a waste of time, since nobody requests these directories except malign robots who don’t honor--or even look at--robots.txt anyway. And then, if a malign robot does look at robots.txt, you’ve now told them “Yup, these directories do in fact exist on my site”.
Disallow: /wp-includes/
Disallow: /wp-admin/The reason for the disallows is that I have seen '/wp-admin/' URLs listed under 'errors' (due to permissions) in GSC and wondered why Google would be looking around in those default folders.
Disallow: /wp-content/
Disallow: /wp-includes/
Allow: /wp-content/*/*.jpg
Allow: /wp-includes/css/
Allow: /wp-includes/js/