All metainfo records specified in the MetaInfo Dashboard of JSitemap are associated to unique URLs, so if you change URLs of the website the related metainfo won't apply anymore and will be lost.
If for some reason you need to change the domain of your website, for example to upgrade to the 'https' protocol or switch between www/non-www, the easiest method to reapply existing metainfo to new links is the following one:
- Export in the backend, clicking on the toolbar button 'Export metainfo', all existing metainfo associated to links belonging to the current domain, for example http://www.mysite.com. Notice that to do this you have to access the Joomla! backend using your existing domain http://www.mysite.com/administrator or to have configured JSitemap to use the domain http://www.mysite.com for sitemap links
- Use a text editor of your choice to replace automatically all links domain included in the exported csv file, for example to have all links pointing to the new domain https://www.mysite.com. Take care to use a raw text editor such Notepad to not alter the CSV file format, it must use ; as the separator and " as the text delimiter, in the same format that it has been exported, otherwise nothing will be imported.
- Import in the backend, clicking on the toolbar button 'Import metainfo', the csv file including all new replaced URLs. Notice that to do this you have to access the Joomla! backend using the new domain https://www.mysite.com/administrator or to have configured JSitemap to use the domain https://www.mysite.com for sitemap links
As an alternative you could even change and update directly all links stored in the database through phpMyAdmin, metainfo records are stored in the database table named #__jmap_metainfo