Robots and php include files

Discussion in 'robots.txt' started by ian_ok, Mar 18, 2006.

  1. #1
    I'm just revising my robots.txt file and was thinking should i ban a bot from indexing anything in my folder that I use as menus etc which are called by the php include command?

    OR would this prevent them from indexing the pages that use those files? Which is every page on my site!

    Thanks Ian
     
    ian_ok, Mar 18, 2006 IP
  2. Slapyo

    Slapyo Well-Known Member

    Messages:
    266
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    If you disallow a bot access to a folder with files in it, that folder and those files will no be indexed. If they are included by PHP they will still show up on the pages the bot is allowed to index. You will be fine by disallowing the bot from that folder.
     
    Slapyo, Mar 20, 2006 IP