if rootdir is '/' or '' it is not added to shortRoute