PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 12-12-2006, 01: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, 07: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

Thread Tools

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 09:06 PM
Problem with site indexing.... Lamer38 Troubleshooting 1 09-11-2004 06:36 AM
Indexing problem: PhpDig will not spider all of the site mih Troubleshooting 5 03-24-2004 11:54 PM
Problem indexing site (uses mod_rewrite) ragaller Troubleshooting 8 03-16-2004 10:22 PM
Strange indexing problem on my site drbill Troubleshooting 9 01-01-2004 01:29 PM


All times are GMT -8. The time now is 03:56 AM.


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