Get URI + Base url

The purpose of this pull request is to let users to put their website anywhere on their server (ie. subfolders)