I'm trying to get the following dynamic URL:
http://example.com/pdfs/viewpdf?id=1494
To be rewritten in the browser's address bar:
http://example.com/pdfs/1494/1494.pdf
Basically, the user is entering in a request to view a PDF that is available on the file/web server and based on the ID number provided, the URL is rewritten to go and retrieve the document from a sub-folder under DOCUMENT_ROOT/pdfs/ whose folder name matches the ID provided along with the PDF filename matching the same ID. What can I try next? Everything I've tried does not work.