@@ 713-715 (lines=3) @@ | ||
710 | return ""; |
|
711 | } |
|
712 | ||
713 | if (substr($urlWithoutProtocol, 0, strlen($baseDomain)) == $baseDomain) { |
|
714 | return substr($urlWithoutProtocol, strlen($baseDomain)); |
|
715 | } |
|
716 | } |
|
717 | ||
718 | // test for base folder, e.g. /var/www |
|
@@ 729-731 (lines=3) @@ | ||
726 | } |
|
727 | ||
728 | // Test for relative base url, e.g mywebsite/ if the full url is localhost/myswebsite |
|
729 | if (substr($url, 0, strlen($baseDomain)) == $baseDomain) { |
|
730 | return substr($url, strlen($baseDomain)); |
|
731 | } |
|
732 | ||
733 | // Nothing matched, fall back to returning the original URL |
|
734 | return $url; |