There are a billion web pages out there that describe how to redirect or mod_rewrite dynamic pages with query strings to static pages, but I want to do the reverse. How would I, for example, redirect or rewrite oldpage.html to index.php?page_id=58 ?
crunch,
You can’t - UNLESS you have access to your httpd.conf where you can write a script to access a file/database to translate the oldpage’s name to the page_id value. Frankly, I’d just as soon use the TITLE value of the page and use that to fetch the file from the db rather than the page_id (see http://wilderness-wally.com).
Without access to httpd.conf, though, you’re stuck with your static page names OR using a translation script to redirect for you (similar to using the RewriteMap but without the elegance).
Regards,
DK