This is my first time asking a question so here goes. I have recently moved my Localhost magento 2 site to a live server. Everything works great but i have a problem and was hoping to find a solution. I have many products and I have added Images in Magento Product Content Description, problem is all the image urls are http://localhost/example/pub/media/wysiwyg...Is there a way to change all of them to my live site eg https://example.com/pub/media/wysiwg...without having to go through each one individually?
So change the localhost urls http://localhost/example/pub/media/wysiwyg...to live server urls https://example.com/pub/media/wysiwyg....etc?
You need to change the URL manually
Hi @adrian_stewart,
Access your database then navigate to the core_config_data table. In this, you need to change the entire URL of the website to your live site. This will fix your problem!
Hope this can help you! Let me know if you need further assistance.
_________
If issue solved, Click Kudos & Accept as Solution.
Go to Stores->Configuration->general->web
change the media url https://example.com/pub/media for both secure and unsecure .
Now run the following commands:-
1. php bin/magento se:up
2. php bin/magento se:di:com
3. php bin/magento s:s:d -f
Problem solved? Click Kudos and "Accept as Solution".