• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Need to write a specific Robots.txt

Hello,

I have a question I'm curious about

I'm developing a WordPress site and I'd like to block pretty much every page from displaying on Google bar one or two specific pages

How would i go about writing the robots.txt for this?

This is purely for Google aesthetic presence within the organic listings.

I'm experienced with SEO but quite the novice with WordPress.

I know i can Disallow : / pages but how would i go about disallowing everything besides two page URLs?

Any advice is appreciated

Thank you
0
Colliwobble
Asked:
Colliwobble
1 Solution
 
GaryCommented:
User-agent: GoogleBot
Allow: /page1.php
Allow: /page2.php
Disallow: /
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now