Hi
I am trying to force the download of pdf files from my server, rather than open them in the browser.
I have unsuccessfully tried
location ~* /wp-content/(.+.pdf)$ {
internal;
add_header Content-disposition “attachment; filename=$1”;
}
Any suggestions?