added support for locations different than /
Merge pull request #1 from pellepelster/master

added support for locations different than /