I have an url www.example.com/english/magazine-one/offline/download.pdf, where I want to access the download.pdf but shows magazine-one.pdf (the magazine folder name) instead without actually renaming the PDF file.
So I have managed to come up with this in my htaccess
RewriteEngine On
RewriteRule ^(.*)offline/magazine-one.pdf$ $1offline/download.pdf [L]
This allows me to mask the URL and access the pdf directly from magazine-one.pdf. However, when I access download.pdf the url still does not change and point to magazine-one.pdf.
Would be great if someone can throw some ideas in.