PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 12-12-2006, 02:52 PM   #1
F.Keniki
Green Mole
 
Join Date: Dec 2006
Posts: 1
Problem indexing site due to backslash

Hi I have a proble crawling site where the url is www.yoursite.com/example
as php dig adds a backslash and trys to crawl instead www.yoursite.com/example/ which produces a 404 error. Has anyone come accross this problem?

Any help gratefully recieved.
F.Keniki is offline   Reply With Quote
Old 12-26-2006, 08:34 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Untested but find in the phpdigRewriteUrl function:
Code:
// phpdig 1.8.9 rc1

    $retour['path'] = mb_ereg_replace('(.*[^/])/?$','\1/',mb_ereg_replace('^/(.*)','\1',mb_ereg_replace("/+","/",$path)));

// phpdig 1.8.8

    $retour['path'] = ereg_replace('(.*[^/])/?$','\1/',ereg_replace('^/(.*)','\1',ereg_replace("/+","/",$path)));
And replace with the following:
Code:
// phpdig 1.8.9 rc1

    $retour['path'] = mb_ereg_replace('^/(.*)','\1',mb_ereg_replace("/+","/",$path));

// phpdig 1.8.8

    $retour['path'] = ereg_replace('^/(.*)','\1',ereg_replace("/+","/",$path));
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
successful indexing of every site but site where phpdig is served phillystyle123 Troubleshooting 1 02-21-2005 10:06 PM
Problem with site indexing.... Lamer38 Troubleshooting 1 09-11-2004 07:36 AM
Indexing problem: PhpDig will not spider all of the site mih Troubleshooting 5 03-25-2004 12:54 AM
Problem indexing site (uses mod_rewrite) ragaller Troubleshooting 8 03-16-2004 11:22 PM
Strange indexing problem on my site drbill Troubleshooting 9 01-01-2004 02:29 PM


All times are GMT -8. The time now is 08:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.