Creates an instance of find closest path.
full path to the file where the UrlTo directive has been invoked.
Array with the list of all the matches.
The final closest URL.
List of all the URLs with the same distance from the origin URL.
full path to the file where the UrlTo directive has been invoked.
The lowest number of slashes found separating the matches for the URL fragment to the origin URL.
Array with the list of all the matches.
The path separator used by the OS.
Initiates the logic to fine the closest URL.
the closest URL.
Goups URLs with the lowest same distance from the origin URL.
Normalizes the current file path to ensure slashes are all aligned.
If more than one URL have the lowest distance from the origin URL, picks the index file, or the first of the list.
Sets the separator used by the current OS.
When for a given URL fragment there are more matches, finds the colsest one.
UrlToDirective