yjones — 2012-09-05T03:02:01-04:00 — #1
I use SEOMoz. This is alerting me to some 'no meta data found' errors on a few pages. Its actually just one page, but it displays different data depending on whats coming out of the db:
eg: mydomain.com/mypage/var-value-1, mydomain.com/mypage/var-value-2, mydomain.com/mypage/var-value-3 etc...
Can I use robots.txt to block all search engines from listing all pages after mydomain.com/mypage/ ? ie some kind of wildcard command?
I hope that makes sense. Please dont suggest I use a canonical tag. Its a long story, but because of the code thats on the page this is not an option.
rajukk00 — 2012-09-05T03:49:54-04:00 — #2
For website's good promotion, sitemap is very necessary. you will do to allow or disallow search engine with help of sitemap.
stevie_d — 2012-09-05T07:42:28-04:00 — #3
You can use robots.txt to block search engine spiders from accessing parts of your site*, if that's what you want to do:
but that asks robots not to look at anything in the "mypage" folder, which would include the index page, so that probably wouldn't work for you.
Another option, which might or might not work for you, would be to create a rewrite regex to redirect mydomain.com/mypage/var-value-* to mydomain.com/mypage/ - it depends whether the DB needs that extra parameter to generate the page or if it's just an artefact.
* OK, technically it's "suggest that the might not want to look there", but most search robots are well-behaved and do what they're asked.
yjones — 2012-09-06T06:40:43-04:00 — #4
Thanks Stevie D - 2 possible solutions there. I'll probably go with the robots.txt one first.
system — 2012-09-09T18:01:30-04:00 — #5
If you're using wordpress then Robots-META plugin will enable you to do this easily - you can set both the indexing and follow tags on a post by post basis.
You can also selectively noindex posts if you're using the Thesis theme.