0

I changed my domain name after a Magento 2 installation, modified the Magento configuration to put the new URL there but the generated sitemap still shows the link of the products with the old URL. I do not understand where to go to modify the URL chosen by the sitemap

Thank you

2
  • Might sound obvious but it wasn't clear from your post, you did regenerate it right?
    – joeybab3
    Commented Jul 15, 2021 at 16:42
  • Yes I regenerated it and of course emptied the magento cache Commented Jul 15, 2021 at 21:13

1 Answer 1

0

Are you opening the sitemap.xml file in your browser and it's still showing the old links?

If so, try incognito or hard refresh the page. Your browser most likely cached the results

3
  • Yes I have tried by emptying the computer cache and especially by directly downloading the .xml file from the ssh. But nothing helps it still regenerates the old URLs. I can't understand why he keeps them. The site is running very well on the new domain name. Commented Jul 15, 2021 at 21:16
  • Are you positive it's overwriting the sitemap.xml file with the new one?
    – elfling
    Commented Jul 15, 2021 at 22:36
  • Yes thank you it work ! Commented Jul 16, 2021 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.