Robots.txt creation help!

Discussion in 'Google' started by pcoulter, Jan 16, 2010.

  1. #1
    Hi,

    I'm looking to exclude some pages of my website from Google indexing...

    I have a real estate listings website and I don't want the individual listings to be indexed (ie. /viewlisting.php?id=1)

    How what is the exact language to use in the file?

    Thanks!
     
    pcoulter, Jan 16, 2010 IP
  2. longcall911

    longcall911 Peon

    Messages:
    1,672
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #2
    User-agent: *
    Disallow: /viewlisting.php
    Code (markup):
    This will prevent indexing of that page regardless of the "id".

    /*tom*/
     
    longcall911, Jan 16, 2010 IP
  3. dpEv

    dpEv Guest

    Messages:
    116
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    dpEv, Jan 19, 2010 IP
  4. bogs

    bogs Active Member

    Messages:
    2,142
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #4
    and then just save the file on the root of your site so SEs can easily recognize it..
     
    bogs, Jan 19, 2010 IP
  5. 277011629

    277011629 Greenhorn

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    sorry I don't konw
     
    277011629, Jan 19, 2010 IP
  6. aleale

    aleale Well-Known Member

    Messages:
    1,453
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    130
    #6
    Yes it disallowed all the pages strating from viewlisting.php
     
    aleale, Jan 19, 2010 IP