Results 1 to 7 of 7

Robots.txt

This is a discussion on Robots.txt within the General Discussion forums, part of the vBulletin SEO Discussion category; Hello- I've been told that is not necessary to have such file in my directory as long as I have ...

  1. #1
    Junior Member hdeassis's Avatar
    Real Name
    tintin
    Join Date
    Jul 2007
    Posts
    24
    Liked
    0 times

    Robots.txt

    Hello-

    I've been told that is not necessary to have such file in my directory as long as I have the .htaccess file in there. Is this correct:

    Here is how my .ht access looks like:
    Rewrite Rule ^/index.HTML /forums/index.Php [L,R=301]

    and here is how my existing robot.txt looks like:
    User-agent: *
    Disallow:



    Any input is greatly appreciated.

    Thanks

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Effectively, your robots.txt file is blank, so it will do nothing.

    Robots.txt ONLY works in the root of your site. There is no such thing as site.com/forums/robots.txt (at least as far as bots are concerned)


    All that said, I don't really understand what your question is...

  3. #3
    Junior Member hdeassis's Avatar
    Real Name
    tintin
    Join Date
    Jul 2007
    Posts
    24
    Liked
    0 times
    My question is:
    Do I need to have a robots.txt or htaccess is enough and will work just ast well the robots.txt. Also do you have any recommendations on what should I have in my robots.txt? Like a sample template?

    Sorry for so many questions. I'm new at this.

    Thanks

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    robots and htaccess are 2 different things

    the robots.txt file is a file where you can block certain pages/folders/scripts from search engine crawling.

    htaccess is used for many things, such as re-writing, secure directories, or loading modules or apache settings on the fly, etc etc.


    what YOU need in your robots file will vary, as it's what's set up on your site.

    The basic jist of the robots file is to exclude all non-important stuff and old scripts from getting indexed.

  5. #5
    Junior Member hdeassis's Avatar
    Real Name
    tintin
    Join Date
    Jul 2007
    Posts
    24
    Liked
    0 times
    Is there a wild card command that I can use to block certain files from been scanned by robots? For example what if I want to block all PHP files at once? Those are really not necessary correct?


    Thanks

  6. #6
    Senior Member Shadab's Avatar
    Real Name
    Shadab
    Join Date
    Oct 2007
    Location
    Bhopal
    Posts
    821
    Liked
    0 times
    Blog Entries
    12
    Quote Originally Posted by hdeassis View Post
    Is there a wild card command that I can use to block certain files from been scanned by robots? For example what if I want to block all PHP files at once?
    Code:
    User-agent: *
    Disallow: *.php
    See Post #4 in thread : Robots.txt, by briansol.

  7. #7
    Junior Member hdeassis's Avatar
    Real Name
    tintin
    Join Date
    Jul 2007
    Posts
    24
    Liked
    0 times
    Thanks everyoone for their input.

Similar Threads

  1. Redirecting /forums/robots.txt to /robots.txt - Is it good?
    By MadK in forum Custom Rewrite Rules
    Replies: 6
    Last Post: 08-22-2008, 07:29 PM
  2. Robots.txt
    By SecondVersion in forum General Discussion
    Replies: 4
    Last Post: 08-14-2008, 03:16 PM
  3. robots.txt
    By frank678 in forum General Discussion
    Replies: 2
    Last Post: 03-03-2008, 03:12 AM
  4. Do i need a robots.txt?
    By seangworld in forum Ad Networks
    Replies: 22
    Last Post: 02-10-2008, 07:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •