Hi,
I'm trying to set up my htaccess so that it redirects pdf files to a new location.
RewriteRule ^documents(.*)$ httq://www.hostname.com/attachments$1 [L,R=301]
this almost works but i want to get rid of extra folders that it passed across (so i really just want to grab the pdf file name and pass that).
at the moment i could have documents/something/file.pdf which i would want redirecting to attachments/file.pdf, but i also want to catch all the files, so say documents/something/anotherfolder/file2.pdf would be redirected to attachments/file2.pdf.
I hope this makes sense, any help would be appreciated.
Thanks.