make index urls relative to root