• Resolved tadmk

    (@tadmk)


    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?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Godley

    (@johnny5)

    The passthrough feature is not designed to be used in this way and will not work. You would be better using server rewrite rules.

    Thread Starter tadmk

    (@tadmk)

    Disappointing but thank you for confirming that. Saves me trying to fight on through and get it working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pass-through for PDF not working’ is closed to new replies.