Forum Moderators: open
Two questions,
Where would the robot exclusion code go, on the home page, or on the actual page where the "add to cart" button exists?
Which of these is the correct syntax to accomplish this:
User-agent: *
Disallow: /~searchresults.asp/addtocart.html
The people I'm hosting with, on an NT machine, say the answer is simply to post the following on the page containing the addtocart:
<meta name="robots" content="index,nofollow">
This doesn't seem correct to me.
Any help would be greatly appreciated!
The first syntax you suggest is better, but it doesn't belong in an HTML page at all -- neither the product page nor the cart page. It belongs in a separate file named robots.txt, placed in the root directory of your site.
By the way, we have an entire forum about the robots.txt file [webmasterworld.com] should your needs become more complex.