Mobile app version of vmapp.org
Login or Join
Cody1181609

: Allow Google to index page loaded by Ajax, but link to parent page I have a website with a page with 10 tabs, each tab's contents is loaded by AJAX. I would like Google to index the content

@Cody1181609

Posted in: #Ajax #Google #Indexing

I have a website with a page with 10 tabs, each tab's contents is loaded by AJAX.

I would like Google to index the content of the tabs (loaded by AJAX), but Google should allow links ONLY to the parent page (not directly to the pages holding content of the tabs ). Otherwise someone will click a Google link which will take them to the unformatted tab content page.

How would I do this?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cody1181609

1 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

Use canonical urls.

So, if your "parent" page is http:www.example.compage1.html, put this line in all your "children" page's <head> tag

<link href="http:www.example.compage1.html" rel="canonical">

How it works?
It simply says to spiders "give all the credit of this web page content to this one I link".
So, Google crawls the content and then doesn't show it in organic search results pages, because all the credit is given to the canonical"parent" page.

Here's a Google resource for canonicals: support.google.com/webmasters/answer/139066?hl=en
And here for iframes: support.google.com/webmasters/answer/34445?hl=en searchenginewatch.com/sew/news/2064573/search-engines-frames
I suggest you to follow all the suggestions made in these links.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme