CDN Related : Rewrite Image URLs automatically from .htaccess
snippet in htaccess

CDN Related : Rewrite Image URLs automatically from .htaccess

user3870

RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com$
RewriteRule ^images\/?(.*)$ "http\:\/\/cdn\.yourdomain\.com\/$1" [R=301,L]