[Project_owners] redirecting a tar.gz file

HJ bugs4hj at netscape.net
Fri Nov 14 04:59:20 EST 2003


Erich Reto Iseli <erich.iseli at iseli.org> wrote:
>Hello all,
>
>I've got a .tar.gz file inside the www structure and I'd like to move it 
>over to the downloads directory.
>
>The problem is that some people are linking directly to the file in the 
>www directory. Therefore I'd like to display the tar.gz as an html file 
>and tell the users that they should update their bookmarks yada yada 
>yada and give them the new link.
>
>So far, I've tried by creating a text file called test.tar.gz with the 
>following content:
>
><?php header( "Content-type: text/html" ); ?>
><h2>Trying redirection</h2>
><p>This file should display as html.</p>
>
>When loading this file, mozilla tried to download it. Of course, since 
>the headers sent are Content-Type: application/x-gzip
>
>Why didn't it change? obviously, gar.gz files are not passed to the php 
>interpretator, like html files.
>
>How can I "hack" the local.conf file of the directory so that this file 
>won't be passed as x-gzip but as html?
>
>ricky

Hi,

Do you have $local_conf_mime_types = ON or OFF; in local.conf?

/HJ

__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455


More information about the Project_owners mailing list