Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS hiding folders

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24520
    dodgson
    Member

    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.

    #55935
    ikthius
    Member

    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

    #55936
    Soh Tanaka
    Member

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

    Code:



    Don’t index this page

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

    #55938
    dodgson
    Member

    thank you both. I appreciate your help.

    #55941
    dodgson
    Member

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

    #55949
    TheDoc
    Member
    "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)
  • The forum ‘CSS’ is closed to new topics and replies.