Update index.php parse_url for older versions of php