A redirection (HTTP 302 or friends) does not return any contents. It merely 
directs the browser to request another URL which will hopefully return the PDF 
document. That response should contain the header "Content-Type: 
application/pdf" - not the redirect. Setting the header in a redirect will have 
no effect on the response serving the PDF file.

It is your php program that should set the Content-Type header. Look at other 
postings on this list for the syntax.

As an aside, the [L] ( as in [R,L] ) is not necessary either since if the 
rewrite rule condition triggers, the redirect will be immediate and no more 
rewrite rules will be evaluated.

-ascs

-----Original Message-----
From: Tony VanScoy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 18, 2005 2:20 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] RewriteMap and sending more then 1 var

> Just one thing: why do you set the Content-Type [T] of a redirect [R]??
> 
> -ascs

Because I'm new and I don't know any better. I figure that since I'm sending a 
PDF, why not set the type? Am I wrong for doing this?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to