works now on web subpathes (localhost/project/page)
Merge pull request #1 from ernscht/master

works on web subpathes