rEd86
Active member
Greetings.
This is a more general programming question. I need to redirect queries coming into my server from:
http://pdf.servername.com/filename.pdf
to
http://pdf.servername.com/pdf.php?id=filename
so that my code can generate a PDF on the fly. My redirect skills are pretty rusty so I was hoping some expert out there could refresh my memory and save what little hair I have left... Here's what I tried:
Thanks!
--Ed
This is a more general programming question. I need to redirect queries coming into my server from:
http://pdf.servername.com/filename.pdf
to
http://pdf.servername.com/pdf.php?id=filename
so that my code can generate a PDF on the fly. My redirect skills are pretty rusty so I was hoping some expert out there could refresh my memory and save what little hair I have left... Here's what I tried:
Code:
RewriteRule ^(/*)(.pdf)$ [URL]http://%1/pdf.php?id=$1[/URL] [NC,R=301]
Thanks!
--Ed