PDA

View Full Version : Looping when indexing


ZoRaC
07-22-2004, 04:37 AM
Hi!

I installed phpdig today and was going to use it to index my dynamic web-site. I bumped into a problem.

The site is structured like this: http://www.domain.com/news/index.php contains a list of news, 10 displayed on each page, and a link to read the news like this:
http://www.domain.com/news/index.php?id=123

There is also a link for prew/next page of news on the top and bottom of the page. (http://www.domain.com/news/index.php?start=10)

The problem is that when indexing it indexes like this:
http://www.domain.com/news/index.php?start=10
http://www.domain.com/news/index.php?start=10start=10
http://www.domain.com/news/index.php?start=10start=10start=10

And:
http://www.domain.com/news/index.php?id=123
http://www.domain.com/news/index.php?id=123id=123

This seems like an infinite loop...

Any suggestions on how to solve this?
I've been trying different settings with "links per page" and "depth", but no luck.

Thanks in advance!

ZoRaC
07-22-2004, 04:56 AM
My setup:
PHP Version 4.3.8-dev
Apache Version Apache/1.3.31
allow_url_fopen On
safe_mode Off

Charter
07-22-2004, 06:52 PM
Hi. Are you using version 1.8.3? I haven't seen this type of looping with version 1.8.3, perhaps luck perhaps not. What's the site it loops on, and does anything show in your error logs?

ZoRaC
07-22-2004, 11:39 PM
Yes, it's 1.8.3.

Do you mean the server-error log? If so, there's nothing there...
If you mean the logfiles for phpdig, I can't find any (yes, logging is enabled)...

ZoRaC
07-25-2004, 03:07 PM
Charter:
Any advise? :)
I'm stuck here...

Could try using mod_rewrite, so that the links would be different, but that requires som re-programming of my site... :(

Charter
07-25-2004, 05:26 PM
Hi. Without knowing your site, perhaps check your HTML source for accuracy or try and see how your links get fed to and returned from the phpdigRewriteUrl function.

ZoRaC
07-26-2004, 12:05 AM
I'm so sorry for doubting your product!
The error was all on me and my programming... :)