I have moved my uploads directory to another server. For example, a url that was pointing to:
should point to here in the new situation:
I know I could do this by a rewrite rule or by a database search and replace, but for various reasons this is not what we want.
Now I know that it is possible to change the urls of posts etc. by using the filter hooks post_link, page_link and post_type_link. I was wondering, is there also a hook that can be used for changing image urls when they are requested from the system?
I primarily focus on the urls for featured images and such, as images in the post content are plain text in the database.