Jump to content

How to replace http to https for embed videos in bulk?


Recommended Posts


I have an issue regarding embed videos from other sites to mine. I used to use WordPress a long time ago on my site and like half a year ago switched to KVS. Everything went smoothly during the migration with a help of KVS team. However, there is an issue with the http in embed codes from other websites as videos I embedded many years ago did not use https. So, embed code which starts with http displays a blank spot instead of player, but when I add "s" the video can be seen and played.

How can I automate the procedure to change http to https as I have thousands of videos?

Many thanks,


Link to comment
Share on other sites

4 hours ago, Tech Support said:

This can only be done massively via direct DB update (use phpmyadmin or other MySQL client):

update ktvs_videos set embed=replace(embed, 'src="http://', 'src="https://') where load_type_id=3 and embed like '%src="http://%';


Brilliant, it worked perfectly. Thank you so much you saved a lot of time for me!

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...