PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Problem indexing site due to backslash (http://www.phpdig.net/forum/showthread.php?t=2720)

F.Keniki 12-12-2006 01:52 PM

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.

Charter 12-26-2006 07:34 AM

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));



All times are GMT -8. The time now is 01:31 AM.

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