Use htaccess to do NOINDEX

Discussion in 'Apache' started by martinvidic, Feb 18, 2010.

  1. #1
    Hi again.

    Got another questions:)

    Does anybody know a way to do noindex with .htaccess on an entire folder.
    The reason why i want to do that is that i have a mobile site which is structured exaclty like my actual "web"-site.
    ( just has a different css style sheet )

    So when you come to the actual site through a link, it rediects you to the same link but with /mobile/ after the domain.
    ( btw, thanx for the help with this chad )

    So what want to no now is avoid that the mobile site is indexed in SE.
    I know I could use <meta name="ROBOTS" content="NOINDEX,NOFOLLOW"> but I'd really prefer a htaccess method.

    Regards
    M.
     
    martinvidic, Feb 18, 2010 IP