This function takes the following parameters:
The URL being accessed by the user
Path info of the URL.