Forum Discussion

Casey_Antoncich's avatar
Casey_Antoncich
Icon for Nimbostratus rankNimbostratus
Jan 31, 2006

Redirect uri for .jpg

Hi,

 

 

Excuse my simple question, but this is my first rule I'm trying to write.

 

 

How would I set my rule to forward all requests for jpeg images to another domain? I would like to host my images at Cachefly or MirrorImage if this is possible.

 

 

Here is what I have so far:

 

 

if (http_uri ends_with ".jpg") {

 

redirect to "http://testaccount.cachefly.net/"

 

}

 

else {

 

use pool Demopool

 

}

 

 

 

Thanks!

 

 

Casey