View Single Post
Old 03-22-2004, 05:07 PM  
frank7799
Confirmed User
 
frank7799's Avatar
 
Industry Role:
Join Date: Jul 2003
Location: In the middle of nowhere...
Posts: 1,974
Quote:
Originally posted by s0laris2
Hello!

I can redirect a url to another address fine with mod rewrite.

But cannot seem to redirect an img src.

Is this even possible?

ie

img src = /foo.com/test.jpg

and rewrite

redirects to /foo2.com/test.jpg>
If you want all image requests being redirected, try this:


RedirectMatch (.*) \.jpg$ http://image.server.com$1.jpg


If foo2.com is your target url it should be like this:
RedirectMatch (.*) \.jpg$ http://foo2.com$1.jpg
frank7799 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote