Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Java script causing duplicate content problem

To show breadcrumbs my client used javascript which made the pages dynamic.

10:30 am on Sep 20, 2007 (gmt 0)

New User

10+ Year Member

joined:Dec 12, 2006
votes: 0


I am working on my client's website which has pure static htm pages. But the Javascipt that he has used on the site just to show the breadcrumbs has converted the static product pages into the dynamic ones.

He has several product pages which has the static urls like the below one


But to show breadcrumbs on the pages he used javascript which has changed the urls of the pages like


So my problem is that the same content (product page) can be accessed through several different urls, so its clearly a duplicate content issue in the eyes of the search engines.

Adding to this, the same product page needs to be accessed through the different categories on the site.

For example: If I make headlights for vehicles. The same product (headlight) can appear on several different categories like under the two-wheeler, three-wheeler and four-wheeler categories.

But all I know is that the content location is same for the product pages (under the proudcts folder) only breadcrumbs is causing problems. So can anybody suggest how can I show these product pages so that urls remains static at the same time I can show the breadcrumbs on the pages as well.

Any suggestions guys?

9:44 am on Sept 21, 2007 (gmt 0)

Senior Member

joined:Mar 8, 2002
votes: 0

Yes. Here's a solution...

It is possible to lay a cookie before generating the header response (200, 301, 302 etc). So - when the bredacrumb variable URL is called, drop the variable as a cookie, then return a 301 without the variable to the static page.