GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   mod rewrite question (https://gfy.com/showthread.php?t=256694)

s0laris2 03-22-2004 04:50 PM

mod rewrite question
 
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>

chrisp420 03-22-2004 04:57 PM

icq me, i can help ya out..

frank7799 03-22-2004 05:07 PM

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


All times are GMT -7. The time now is 05:07 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123