Imrove url support. Provided support for non-root urls, ex.: domain.com/...

Improved url support. Provided support for non-root urls, ex.: domain.com/api/rest/action