Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • vivian3795 1 post 21 karma points
    Nov 29, 2023 @ 07:02
    vivian3795
    0

    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies