url bug fixes in settings.php