Updated the URL Validation for Alias

Added another function getAliasURL($url, $php_url, $type)
This will allow us to check which Alias Pattern matches with current
request and then we will validate it.
Fixed Validate URL Function and other minor tweaks

Fixed the Validate URL function by adding a condition of variable
$uri_match_found.
If a match is found, then we will not find other patterns.
Else, keep finding for matching pattern.