public static function get_server_location($url)
{
// if we're already an absolute dir, just return
if (0 === strpos($url, ABSPATH)) {
return $url;
}
// otherwise, analyze URL then build mapping path
$au = self::analyze_url($url);
$result = self::_get_file_path($au['base'], $au['subdir'], $au['basename']);
return $result;
}