set proper site name and basepath