![]() |
not indexing some links
I've got Apache configured to some URL rewriting, so links that would be like dir/page.php?variable=value can be rewritten much more simply as dir//value.
Unfortunately, (I suspect due to the double-/) phpdig is not acknowledging these links and following them, leaving portions of the site un-indexed. Is there something I can tweak in phpdig somewhere to have it index these URLs instead of ignoring them? Or am I going to need to change my Apache rewrite to accomodate phpDig? (which I'm reluctant but ultimately wiling to do if I have to). |
Hi. Try looking in the phpdigRewriteUrl function.
|
Thanks for telling me where to look. Unfortunately, though I have a tiny bit of familiarity with regular expressions, my competenance isn't such that I can decipher the wizardry going on in phpdigRewriteUrl. What am I looking for and how would I modify it to play nice with my double-slash URLs?
|
The below takes more than one slash and replaces them with one slash. It shows up a couple of times in the phpdigRewriteUrl function so try removing it from the code.
PHP Code:
|
Aha. I feel dumb for not spotting that one, it's pretty blatant. Thank you.
Unfortunately, neither modifying its behavior (I changed "/+" to "//+") nor removing it entirely (in the two places it appears) worked: phpdig still isn't finding those links. Your help has been dead-on and seems like it should have fixed things, but... |
All times are GMT -8. The time now is 12:31 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.