On Media page, the link successfully displays "http://YYY.com/XXX/media/1079/450.jpg".
However, the database still stores "/media/1079/450.jpg" .
When I want to insert links on Content page, the link still is "/media/1079/450.jpg" not "http://YYY.com/XXX/media/1079/450.jpg.
change media file URL
My website was originally "XXX.com" but now it is changed to "YYY.com/XXX".
The root directory of the website is "YYY.com" (not "YYY.com/XXX")
Images and file links on the website use relative path (for example, src="/media/1079/450.jpg")
Now, the link will be determined as "YYY.com/media/1079/450.jpg"(The correct link is "YYY.com/XXX/media/1079/450.jpg")
Is there any solution to solve this problem?
Solutions I've tried
it didn't work when src="/media/1079/450.jpg". (However, it works when src="media/1079/450.jpg".)
On Media page, the link successfully displays "http://YYY.com/XXX/media/1079/450.jpg". However, the database still stores "/media/1079/450.jpg" . When I want to insert links on Content page, the link still is "/media/1079/450.jpg" not "http://YYY.com/XXX/media/1079/450.jpg.
is working on a reply...