I have some existing perl urls that are created static via mod rewrite. For example:
www.foo.com/HappyStaticURL.htm
Is translated itno
/docroot/program.cgi?id=HappyStaticURL
Which generates the page. We end up with classic static urls hidding dynamic content.
Moving to Wordpress.
I have the same perl code (program.cgi) above that I can call from a Wordpress post. This works great. However, I have been unable to map the static url into a dynamic wordpress php call that I can then call back to the perl from the post.
How would I go about that?
It seems like I should be able to use mod_rewrite to:
RewriteRule ^(.*).htm /index.php?record=$1&action=p1&src=cmdline&p=466
Where p=466 is the post that contains the perl call.
At this point, Word press does call and display that post. However, It is issuing a redirect to the permalink, and it is not passing any params. So the perl doesn't know which record to produce.