how fixed Blocked by robots.txt in wordpress?

440 views Asked by At

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

1

There are 1 answers

1
amarinediary On

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