Follow signup.php but NOT the proceeding query string

Discussion in 'robots.txt' started by MrThePlague, Nov 27, 2007.

  1. #1
    I've searched a couple posts on the subject, but really did not come up with a definitive answer. If I'm looking for the following to be indexed:

    /signup.php

    but NOT the following to be indexed:

    /signup.php?promotioncode=FREE30

    would the following syntax in the robots.txt allow for the indexing of the signup.php page but not the query string?

    User-Agent: *
    Disallow: /signup.php?*$

    Any feedback or suggestions are much appreciated! :)
     
    MrThePlague, Nov 27, 2007 IP
  2. Kuldeep1952

    Kuldeep1952 Active Member

    Messages:
    290
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #2
    The following should meet your requirement:

    User-Agent: *
    Disallow: /signup.php?

    *$ are not required
     
    Kuldeep1952, Nov 28, 2007 IP