what does this do?

Discussion in 'Programming' started by pizzaman, Nov 4, 2007.

  1. #1
    RewriteCond %{HTTP_USER_AGENT} !(msnbot|slurp|googlebot) [NC]\
    HTML:
    i have this line in my htaccess file, what does this do?
     
    pizzaman, Nov 4, 2007 IP
  2. e96

    e96 Active Member

    Messages:
    299
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    80
    #2
    it checks that the visitor is not msnbot,slurp or googllebot
     
    e96, Nov 4, 2007 IP
  3. pizzaman

    pizzaman Active Member

    Messages:
    4,053
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    90
    #3
    and what does it do if it is msnbot,slurp or googllebot ?
    should i take it out?
     
    pizzaman, Nov 4, 2007 IP
  4. e96

    e96 Active Member

    Messages:
    299
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    80
    #4
    what is the next line in the .htaccess file ?
     
    e96, Nov 4, 2007 IP
  5. pizzaman

    pizzaman Active Member

    Messages:
    4,053
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    90
    #5
    AddType text/xml .xml .xsl
     
    pizzaman, Nov 4, 2007 IP
  6. e96

    e96 Active Member

    Messages:
    299
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    80
    #6
    hmm, i don't know. i have been messing around with mod rewrite lately but i haven't seen this becuase usually every
    rewriteCond
    Code (markup):
    is followed by a rewriteRule and the rewrite rule is what happens when the condition is satisfied---i assumed your next line would be a rewriteCondition. sorry don't know more
     
    e96, Nov 4, 2007 IP
  7. pizzaman

    pizzaman Active Member

    Messages:
    4,053
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    90
    #7
    ok thanks i am going to take it out
     
    pizzaman, Nov 4, 2007 IP