Mobile app version of vmapp.org
Login or Join
Correia994

: 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,

@Correia994

Posted in: #Ajax #GoogleIndex

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Correia994

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nickens628

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme