Grow your CSS skills. Land your dream job.

hiding folders

  • # April 7, 2009 at 11:54 am

    Hey guys and gals, I was just wondering if anyone new of a way of hiding a folder in my web directory, so that google wouldn’t index it, but I would still be able to create direct links to html files to send to clients.

    The problem is that I’m a web/graphic designer and I have been putting test sites in my own web directory, but unfortunately one of my clients noticed their site in a google search today and it was the version behind my site.

    I’m not sure what best practice would be, so any advice would be greatly appreciated.

    # April 7, 2009 at 12:37 pm

    have a robots.txt file

    put it in your root level and have something like this in it

    User-agent: *
    Disallow: /cgi-bin/
    Disallow: /images/
    Disallow: /htdocs/
    Disallow: /whatever other directory you wish/

    or an .htaccess file

    # April 7, 2009 at 12:53 pm

    what ikthius said, and add a ‘noindex’ to the header of that directory page:

    Code:


    http://en.wikipedia.org/wiki/Noindex

    # April 7, 2009 at 1:01 pm

    thank you both. I appreciate your help.

    # April 7, 2009 at 1:51 pm

    what does the * mean in User-agent: * . Just interested.

    # April 7, 2009 at 5:28 pm
    "dodgson" wrote:
    what does the * mean in User-agent: * . Just interested.

    It usually means "anything", so I assume it does in this case as well. "User-agent: any" would be my guess.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".