Forum Moderators: goodroi
They are only 2 variations that are found on 6 different urls.
?variable=white and ?variable=black
But are found on for example:
www.domain.com/keyword-keyword1.php?variable=black
www.domain.com/keyword-keyword1.php?variable=white
Above is instance 1.
Instance 2, would say have keyword-keyword2.php?variable=white
DO I block:
dissallow:?variable=white Or the full path ? like :
dissallow:keyword-keyword1.php?variable=black
According to Google
Disallow: /*?variable=white
will disallow any URL that begins with your domain name, followed by any string, followed by a string of the form '?variable=white', followed by any string.
So
Disallow: /*?variable=white
Disallow: /*?variable=black
should disallow all URLs containing '?variable=white' or '?variable=black'.
The above should disallow:
www.example.com/abc/def.asp?variable=white
www.example.com/abc/ghi.asp?variable=white
www.example.com/abc/ghi.asp?variable=whitewashthefence
www.example.com/abc/jkl.asp?variable=white&id=123
www.example.com/abc/jkl.asp?variable=white&id=123&shape=sqare
It would NOT disallow:
www.example.com/abc/jkl.asp?id=123&variable=white&shape=sqare
www.example.com/abc/jkl.asp?id=123&shape=sqare&variable=white
However, Disallow: /*?*variable=white shouldould.
According to Google, basically there is an implied wildcard at the end of the Disallowed pattern unless you use a '$' to indicate end of line.
[google.com...]
So
Disallow: /*?variable=white$
would disallow
www.example.com/abc/def.asp?variable=white
www.example.com/abc/ghi.asp?variable=white
but would allow:
www.example.com/abc/ghi.asp?variable=whitewashthefence
www.example.com/abc/jkl.asp?variable=white&id=123
www.example.com/abc/jkl.asp?variable=white&id=123&shape=sqare
I'm not sure, however, if all of the engines support this syntax.
[edited by: ZydoSEO at 7:08 am (utc) on Feb. 18, 2008]