Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a product page with say 10 products, that loads up all the content when the page loads. Then JavaScript hides content till a product is selected. Then JavaScript hides and unhides information. It is this way rather than separate html pages for each item for design and updating purposes.

Google indexes the content fine, but instead of indexing 10 product pages it indexes the page as 1 page. Can I get Google to index each JavaScript section as a separate page?

I have made the links with #!, as I read that this would help, but it has not. Like this:

http://site.com/products.html#!PRODUCTA

Is this possible or I have to go back to separate html for each product?

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

AFAIK you can't. You can do some workarounds, as joesk answered, to fake it.

A solution would be if you load the products with AJAX, e.g. implement the AJAX crawling guidelines and provide "snapshots" of the individuel products.

share|improve this answer
1  
Thanks for the link. I guess I misunderstood step 1 and the point of the #! . Good idea but I think it will be simpler to do the dog work of separate html pages. Thanks –  Jon Feb 1 '13 at 12:03
add comment

Why not do both? So leave your existing setup as it and then make a nice clear architecture with the products listed on individual pages for Google to clearly understand. This could be highlighted in a HTML and/or XML sitemap. You can then make these pages the canonical version of the product pages to clarify which page should be deemed the "product" page.

share|improve this answer
    
The point of getting them listed in google is so they will be the google landing pages. So if they land on the html pages I need to do the upkeep and design Im trying to avoid. But I like the theory. –  Jon Feb 1 '13 at 11:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.