function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SivaReddy MSivaReddy M 

How to change domin name in url within rich text area using apex

Hi In knowledge article rich text area i have multiple images i need to send these to internal websites for public visible. i found that if i ablw to change domin as community url images are visible as publicly. 
this is knowledge image url : : -- https://company--developer.sandbox.file.force.com/servlet/rtaImage?eid=ka026000000EzmV&feoid=00N2600000Db0bk&refid=0EM26000000EHHi
But i need to change like below url then only image is available to public: How can i change like this using APEX.
https://company--developer.sandbox.my.salesforce-sites.com/servlet/rtaImage?eid=ka026000000EzmV&feoid=00N2600000Db0bk&refid=0EM26000000EHHi
Min-Je KimMin-Je Kim
Hi. SivaReddy

i think this link seem to answer your questions:
https://salesforce.stackexchange.com/a/327184

watch quintencls's Answer.

Min-Je Kim