0

My site robots.txt commands include this

    User-agent: *
Disallow: /wp-admin/
Allow: /

My problem is in the google search console in live testing Displays this error for my site pages

Blocked by robots.txt

Also, most of my web pages are not indexed For example, the home page and all posts

see image

Mr_sasani
  • 1
  • 4

1 Answers1

0

Probably not related to the robot.txt. That's just a generic Google error.

I guess you just pushed your website to live ? By default WordPress has the discourage search engine visibility toggled.

You should be looking in your settings:

Settings Reading ✗ Discourage search engines from indexing this site.

enter image description here

amarinediary
  • 4,930
  • 4
  • 27
  • 45