Fixed some issues with the baseURI being different, also this tests for an absolute match of the requestPath making it more secure.