Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Robots.txt (https://www.askmehelpdesk.com/showthread.php?t=24325)

  • Apr 10, 2006, 02:32 AM
    potski
    Robots.txt
    Hello!

    I need help in writing a correct robots.txt file.
    I don't know anything about this and I just want to
    Make sure I end up getting the right codes based on
    How I want things to be.


    These are exactly the files and folders inside my server:

    FILES:
    - index.html
    - welcome.html
    - logo.jpg

    FOLDERS:
    - stats
    - family
    - sports

    I have a website inside the "family" and "sports" folder.
    I also have another one which is the "index.html" file in
    The root directory.


    I want robots, agents, spiders, or whatever to be able to
    Crawl everything BUT the website and files I have iside the
    "family" folder. Those are for my family only and I'd like
    To keep it private. Everything else, I want it to be seen and
    To be able to be indexed in search engines.


    I would really appreciate any help I can get. Thank you!

    PS: Where do I put the robots.txt file? Do I put it in the
    Root directory?
  • Apr 10, 2006, 02:52 AM
    LTheobald
    As you guessed, you have to place the robots.txt file in the root directory of your site. As for the contents the file should hold, this should do the job:

    Code:

    User-agent: *
    Disallow: /family/

    For more information, check out these links:
    The Web Robots Pages
    Robots.txt Syntax Check
  • Apr 10, 2006, 02:57 AM
    potski
    Big thanks! Appreciate that!

  • All times are GMT -7. The time now is 09:51 PM.