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


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

| improve this answer | |
  • Thank you very much. – RamodS Jul 22 at 6:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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