Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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