Hi all,
A real newbie here with a question.
I'm using an htaccess file to protect a directory of large gifs
and sounds. Here is what i've written:
-------------------------------------------------------------
AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER}
!^http://www.myserver.com [NC]
RewriteCond %{HTTP_REFERER}
!^http://myserver.com [NC]
RewriteRule /*
http://www.myserver.com/error.mv [R,L]
-------------------------------------------------------------
-------------------------------------------------------------
The problem i'm having is,
somebody may try to directly access my directory looking for a file
named "lookatme.gif", they get forwarded to the error page,
but the browser receives the error page and downloads it as
"lookatme.gif". Of course when the person tries to open it
they get an error message because the received file is not a
".gif" file but html text.
I'm reading my Apache bible
and the section on MIME types and my question is: Is there a way to
modify the htaccess file so that regardless of the file requested
(".gif", ".wav", ".jpg", etc.) they
would receive a file recognizable as an html document or a plain text
file when clicked on?
Any help would be greatly
appreciated,
Paul Williams
--
======================================
http://www.StuckMic.com/america -- The American Code
Remembering the attack on America
http://www.StuckMic.com -- MIVA Powered Aviation
and Air Traffic Control discussion and chat.
http://www.WavSounds.com -- Thousands of
funny wavs, fully searchable.
======================================
http://www.StuckMic.com/america -- The American Code
Remembering the attack on America
http://www.StuckMic.com -- MIVA Powered Aviation
and Air Traffic Control discussion and chat.
http://www.WavSounds.com -- Thousands of
funny wavs, fully searchable.