Quote:
Originally Posted by StGaensler
I have two things to remark:
As you send a Location: header the Content-type: header doesn't matter as the browser makes a second request for the png file.
This second request takes some time so I suggest doing the "decision" directly on the server without the need of a second request. This only needs the Apache module mod_rewrite:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)\.gif$ $1.png [NC,L]
Every non-existing gif file so gets redirected to a png file. I don't check if the png file exists but I think this doesn't matter
Stefan
|
Can you please explain a bit more?
Do I have to add those lines in my ".htaccess" file? Is that all?
In my root folder I can't see any mod_rewrite. I'm sorry but I know nothing about this.
Thank you in advance.