Below is what I currently use which works fine - certain file types are redirected to load off a different host server. But is there an easier way to write it, for example by combining all possible file types into (js|css|gif|jpg)... etc. ?
RewriteEngine On
RedirectMatch (.*)\.js$ http://www.newdomain.com$1.js
RedirectMatch (.*)\.css$ http://www.newdomain.com$1.css
RedirectMatch (.*)\.gif$ http://www.newdomain.com$1.gif
RedirectMatch (.*)\.jpg$ http://www.newdomain.com$1.jpg
RedirectMatch (.*)\.png$ http://www.newdomain.com$1.png
RedirectMatch (.*)\.swf$ http://www.newdomain.com$1.swf
--
Thanks.