Add correct root relative urls and update permissions