/~username robots.txt issue - With Fix
PhpDig v.1.8.7
Issue: If a robots.txt file Disallows searching a user directory (/~username) PhpDig interprets this as Disallow: / (everything) Solution: In the robot_functions.php in function phpdigReadRobotsTxt on Line 917 change: Code:
if (eregi('[[:blank:]]*disallow:[[:blank:]]*([/]?([a-z0-9_/*+%.-]*))',$line,$regs)) Code:
if (eregi('[[:blank:]]*disallow:[[:blank:]]*([/]?([a-z0-9_/*+%.-~]*))',$line,$regs)) |
Thanks. :)
Just change it to the following: Code:
[a-z0-9_/*+%.~-] Code:
$allowed_link_chars Code:
[a-z0-9_/*+%.-]* Code:
global $allowed_link_chars; |
All times are GMT -8. The time now is 12:46 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.