Changing URLs to the appropriate location.