Edit url to prevent 404