When I search my website in google, all the pages and posts can see. I want to make only homepage visible in search results and remove other pages(privacy, contact etc). And also all the posts can visible without snippet. I want to fix this. Please help me. enter image description here

1 Answer 1


In your WP directory edit ( or create ) robots.txt

User-agent: *
Allow: /$ 
Disallow: /

Then wait till search engine reindex your pages, or try to run it manually with google with Google Search Console

  • Thank you very much.
    – RamodS
    Jul 22, 2020 at 6:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.