fix config for base url and sub dirs