The problem: the worpress site is developed locally by my team. When we finish, we will put it online. Now, changing the
ossdl_off_cdn_url in the database
table wp_optionsis easy to change. But we have to change all URL in post data, especially the links that lead to the images.
We want, when we post a new image, that is registered in the database by:
There is a plugin or a mod to do so?
We have already ran this query:
UPDATE wp_posts SET `post_content` = REPLACE (`post_content`, 'src="http://siteurl', 'src="');
To cancel all reference URL and get image directly from the site root folder
/wp-content but we do not want to do this also for future images.
Read more here: Change database image location for transportability