Manage non-root path URL

This commit continue and finish the work of PR #116, and close issue #97
Merge pull request #118 from sbadia/improvement/87/sbadia

Manage non-root path URL