fixed issue with url in sub dir configuration