Welcome to WebmasterWorld Guest from 50.16.24.12

Forum Moderators: goodroi

Blocking Email and Print only URLS

   
10:11 pm on Nov 26, 2008 (gmt 0)

5+ Year Member



I'd like to block following patterns (only email and print pages):
http://example.com/view/1/email
http://example.com/view/2/print
http://example.com/view/3/email/
http://example.com/view/4/print/

So I've added following code to robots.txt?

Disallow: /*/email/$
Disallow: /*/print/$
Disallow: /*/email$
Disallow: /*/print$

Am I correct? I think my code is correct but I'm not sure.. just need confirmation...

TIA

12:14 am on Dec 7, 2008 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Have you tested your robots.txt using the tool provide in Google's Webmaster Tools?
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved