perusio / drupal-with-nginx

Running Drupal using nginx: an idiosyncratically crafted bleeding edge configuration.
855 stars 246 forks source link

Redirect from pdf file location to Drupal page #254

Open EdViva opened 8 years ago

EdViva commented 8 years ago

I want to redirect from a file - that may or may not no longer exist in /sites/default/files, for example, /sites/default/files/myfile.pdf to /new-location. This doesnt work with the redirect module on nginx. It would be fairly simple with .htaccess but obviously we are not using that with nginx. Does anyone know how to make that work?