Using IIRF to redirect to a PDF
Posted
by Michael Itzoe
on Stack Overflow
See other posts from Stack Overflow
or by Michael Itzoe
Published on 2010-02-10T15:12:27Z
Indexed on
2010/04/04
4:23 UTC
Read the original article
Hit count: 576
I'm using IIRF to redirect certain URLs to specific PDF files. For instance, for the URL /newsletter/2010/02 I'd like it to redirect to /pdf/newsletters/Feb2010.pdf. I'm not too hot at regular expressions, but I created the following rule:
RedirectRule ^/newsletter/2010/01 /pdf/newsletters/Newsletter012010.pdf [I,R=301]
and it does redirect, but the address bar doesn't change, and when trying to save the file it wants to save as 01 instead of Feb2010.pdf. I don't presume my users will be savvy enough to enter a PDF extension before saving, and they shouldn't have to. Is there anything I can do about this?
© Stack Overflow or respective owner