Remove URL entries in resources, and add relative path