public static function replaceUrl($content, $oldPrefix, $newPrefix)
    {
        $replacedUrl = preg_replace(
            '#(.*?)/' . preg_quote($oldPrefix, '#') . '(.*?)#',
            '$1/' . $newPrefix . '$2',
            $content
        );
    
        return $replacedUrl;
    }