Forum Moderators: goodroi

Message Too Old, No Replies

disallowing a variable

         

KevinC

8:57 pm on Nov 10, 2008 (gmt 0)

10+ Year Member



disallow: /*?PageAction=EMAILFRIEND

just a quick question about the above? I want to disallow the "emailfriend" variable but not the pageaction variable as I require it for other pages that I want to stay indexed.

Is the above safe to just disallow the emailfriend link?

KevinC

12:43 am on Nov 11, 2008 (gmt 0)

10+ Year Member



I think I found my answer but I'm little nervous pulling the trigger.

does this look correct:

User-agent: *
Disallow: /admin/
Disallow: /affiliatewiz/
Disallow: /eproducts/
Disallow: /themes/

User-agent: googlebot
User-agent: slurp
User-agent: msnbot
Disallow: /*EMAILFRIEND*

goodroi

12:40 pm on Nov 11, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



that should work. be aware that wildcards are not official parts of robots.txt protocol. they are special allowances provided by the big search engines. be careful and keep and eye on it just to be safe.

KevinC

10:37 pm on Nov 17, 2008 (gmt 0)

10+ Year Member



thanks a lot, I have it in place and so far no issues.