All media on my website is placed in the folder 'images'. All PDFs are placed in 'images/PDFs'. Now I would like to rewrite the URL such that it looks like the PDFs are in the folder 'downloads', which they're not.
Summarized:
Original URL: 'mywebsite.com/images/PDFs/NAMEPDF.pdf'
Rewritten URL: 'mywebsite.com/downloads/PDFs/NAMEPDF.pdf'
I tried it with MOD rewrite, but this doesn't work:
RewriteCond %{THE_REQUEST} ^GET\ /images/
RewriteRule ^images/(.*) /downloads/$1 [L,R]
Does somebody knows how to do this?