Solved

Robots.txt Exclude URL's

Posted on 2011-03-05
1
386 Views
Last Modified: 2012-05-11
I have links like this:

www.domain.com/add_cart.php?ID=5430

I want to keep these links from being included in anything that creates a sitemap and I want to keep Google from following them.  I tried to add the add_cart.php to the robots.txt but I'm still seeing them when I generate a site map. Would a no follow rule on the link work?
0
Comment
Question by:cstormer
1 Comment
 
LVL 4

Accepted Solution

by:
AlanNMMX earned 500 total points
ID: 35043959
Hi, you could add the following meta tag to the head section of the add_cart.php file. This would stop bots from indexing this page.
<meta name="robots" content="noindex" />

Open in new window

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now