using Mod_rewrite for images ?

I would like to make all my images and css files be fetched from a different server …



example …



images/image.gif i would like them displayed from cdn.someserver.com/images/image.gif



and



images/banner/image.jpg i would like them displayed from cdn.someserver.com/images/banner/image.jpg



i would also like to automatically detect and route to https or http depending on the page there on …





anyone know how to do this with mod rewrite ?

Hi Teksigns,



I don’t know how to do that but are you still optimizing? I know you have been working on it, how is it going? Did you figure out how to combines the CSS or JS files yet without breaking your site? I would love to do that. I thought about removing the import from one of them and copying all of the file into the other and see what happens. Then I thought it can’t be that simple … can it?





Thanks.