PDA

View Full Version : search results are duplicates


rasputin
01-29-2004, 05:49 AM
Hi,

I know this problem was discussed by an earlier threat, too but I still didn´t find any solution to prevent duplicates in my search results.

It´s always the same. One file is printed 10 times or even more, just with the difference that the URL has slightly changed like:

index.php?content=1
index.php?content=1&vo=2
index.php?content=1&&vo=2
index.php?

size is identical in most cases.

What exactly is necessary to prevent this?

thx.

Charter
01-29-2004, 08:11 PM
Hi. Perhaps try the code in this (http://www.phpdig.net/showthread.php?postid=1899#post1899) post, modifying as desired.

renehaentjens
01-30-2004, 12:19 AM
I suggest to leave the standard PhpDig implementation intact.

In my website, URLs like the ones in rasputin's post would generate totally different pages. In fact, I have a website where ALL pages of a branch are generated by the same PHP script, but with different URL parameters.

Charter
01-30-2004, 12:17 PM
Hi. The code in this (http://www.phpdig.net/showthread.php?postid=1899#post1899) post should only strip URL parameters if set in the PHPDIG_SESSID_VAR constant.