sandegownc — 2012-11-30T07:08:20-05:00 — #1
My question is like very simple but for me a very big cause to think .
In robots.txt file if i indicate one of my URL having like www.example.com/category/internetmarketing.php , so if do use this particular page not to crawl in Google . Then is it possible that only this URL will be considered for not to crawl as it having main category page also.
According to my it will consider main url like www.example.com/category page.
So will please somebody clarify me how this problems will be removed .
technobear — 2012-11-30T07:23:57-05:00 — #2
If I've understood you correctly, you want Google to crawl your "category" directory, but not the single page within it called internetmarketing.php.
In that case, all you need in your robots.txt file is:
It will continue to crawl every other page in "category", (provided it can access them, of course).
If you want to block all search engines, and not just Google, then use:
Remember, this will only stop well-behaved bots whih respect the robots.txt file; it won't protet you from bad bots.