Welcome to WebmasterWorld Guest from 3.226.251.81

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

strange "redirect" behaviour for pictures...

     
6:41 pm on Dec 22, 2003 (gmt 0)

New User

10+ Year Member

joined:Dec 22, 2003
posts:2
votes: 0


Hi :)
First post on board and newbie to Apache :)

I have Apache 2.0.47 for the moment and I try to manage a little website.

I have in fact on a server Phpbb2 installed and I wanted to save some bandwitch putting the pictures (smiles / avatars) on another server...

For instance, here is the structure of the "Phpbb2" server:
www/phpbb2/images/avatars
www/phpbb2/images/smiles
and so on...
In the images directory there are directories with pictures...
So I tried to redirect all "calls" to the "images" directory to another website, doing:
Redirect /phpbb2/images h**p://www.example.com/test_smiles/images

In fact, it is working... When I call:
h**p://forum.test-example.com/images/avatars/gallery/liste_boite/av_taki_2.gif

I get:
h**p://www.example.com/test_smiles/images/avatars/gallery/liste_boite/av_taki_2.gif

BUT it seems that the picture displayed in IE is in BMP when I try to save it (right clic on IE), and it is displayed much lower than if I called directly
h**p://www.example.com/test_smiles/images/avatars/gallery/liste_boite/av_taki_2.gif and in this case, it is well a gif...
If I "redirect" in this case an animated Gif, it is displayed "animated" but I can only save it in BMP...

I guess I missed something, any help?
I have to say I can not change the calls on pictures on phpbb2 because it takes the phpbb2 directory as "home", so I can not put "h**p://www.example.com/avatars/" for avatars dor example, only "/avatars", relatives paths...

I tried to

[edited by: jdMorgan at 11:06 pm (utc) on Dec. 22, 2003]
[edit reason] Removed specific URLs [/edit]

12:31 am on Dec 23, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


lmame,

Welcome to WebmasterWorld [webmasterworld.com]!

It sounds like your image server is not configured to provide the proper MIME-type with the images it is serving. You can check this by requesting an image directly from that server using the Server Headers Checker [webmasterworld.com]. Compare the server headers with those received when requesting an image from a server that *is* providing the proper headers. Then see Apache mod_mime [httpd.apache.org] for the directives needed to fix the problem.

Jim

9:34 am on Dec 23, 2003 (gmt 0)

New User

10+ Year Member

joined:Dec 22, 2003
posts:2
votes: 0


Arf :)

Thanks a lot ;)