: Prevent Google indexing Ajax Postback I have a website example.com where I have a number of pages where comments can be made. Instead of using postback to post the comments back to the server,
I have a website example.com where I have a number of pages where comments can be made. Instead of using postback to post the comments back to the server, I use Ajax but it seems to have created additional pages.
example.com/page http://example.com/page/postcomment
It has indexed the postcomment page rather than the one without the postcomment. How can I prevent Google from indexing postback function calls?
More posts by @Correia994
1 Comments
Sorted by latest first Latest Oldest Best
Look here:
www.robotstxt.org/meta.html
It tells you how to make search engines to NOT index pages you don't want it to index.
All you need to do is insert this into the HTML of your example.com/page/postcomment page is this between <head> and </head>:
<META NAME="ROBOTS" CONTENT="NOINDEX">
And make sure such line is removed from example.com/page
Also, I think google wanted to index example.com/page/postcomment because based on the URL, it appeared more interesting than just example.com/page.
And, to increase the odds of a specific page being indexed, add a meta description and a unique title to the page.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.