Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Google Indexed my Ajax pages, now what?

         

jskrewson

7:07 pm on Jan 15, 2008 (gmt 0)

10+ Year Member



Oh, that wacky googlebot.... For some reason it has indexed a url in my javascript ajax calls, e.g.

ajaxCall("http://example.com/dynamicWidgetCode.html")

So now the above url, which only shows a portion of the page, without css, is in the google index and outperforming the parent page for some reason.

So how would you all go about fixing this problem? First, I need google to not index this page... I guess I can assemble the url from parts when I make the call. Then, I guess I will stick a javascript snippet that does a redirect to the real page...

But what do I do about the fact that the page is already in the Google SERPS? I want the parent page, not this UI element....

Thanks,
Jim

[edited by: Robert_Charlton at 7:42 pm (utc) on Jan. 15, 2008]
[edit reason] use example.com - it can never be owned [/edit]

LoganFoster

1:32 am on Jan 16, 2008 (gmt 0)

10+ Year Member



Move the ajax file to another location, with an extension that's not going to get indexed. Then 301 redirect from the old filename to the page you want to get ranked.

Oh and stop using .html for anything that you don't want indexed. Or use robots.txt or other means to ensure that they don't get indexed in the future.

[edited by: LoganFoster at 1:33 am (utc) on Jan. 16, 2008]

jskrewson

4:19 pm on Jan 16, 2008 (gmt 0)

10+ Year Member



Thanks for the advice LoganFoster. I implemented the following:

1) Renamed the Ajax widget page
2) Robot.txt dissallow for new and old ajax widget pages
3) 301 redirect from old ajax widget page to the parent page.

My parent page started showing on the first page of Google SERPS within 8 hours.

Thanks Again,
Jim