Welcome to WebmasterWorld Guest from 54.145.69.236

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

noindex with .htaccess

     
6:52 pm on Feb 19, 2010 (gmt 0)

New User

5+ Year Member

joined:Oct 1, 2007
posts: 35
votes: 0


Hi everybody

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.

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"> in every file, but I'd prefer a htaccess method.

Thanx in advance
Regards
Martin
8:53 pm on Feb 19, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


It's easy in robots.txt, "Disallow: /folder" is all you need.
1:34 am on Feb 20, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


You can send the X-Robots header using mod_headers (if available on your server). Support among search engines is limited to the top-tier of search engines, though. See the Google Webmaster help pages (or do a search for the X-Robots HTTP header) for more information.

Jim
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members