Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Pass-through for PDF not working

$
0
0

Replies: 0

Apologies if this has been raised before but I cannot seem to find anything similar posted.
I’ve set up a simple pass-through redirect to a PDF file so that it appears as if located in a ‘download’ area as opposed to under the wp-content folder path structure. The basic settings are as follows

  • Source URL: /[relative url]/form.pdf
  • Query Parameters: Ignore and pass parameters to target
  • Match: URL only
  • When matched: Pass-through
  • Target URL: [absolute url]/wp-content/uploads/2019/10/form.pdf

When loading the target URL in a browser the PDF file is rendered correctly, as a PDF file. However the result when using the pass-through redirect is that contents of the PDF file are literally rendered as (I guess) as if it were a text file. I’m guessing that the content type is not being passed up the chain.
I have also tried removing the file extension from the source URL and that doesn’t make any difference either
Is this a bug, technical limitation or user error in configuration?


Viewing all articles
Browse latest Browse all 59525

Trending Articles