I have a widget that I'm making that builds a multi-step form which retrieves xml data from a third party plugin (http://xmlplugin.com/geoquote.php). While this plugin is available for use already it isn't wordpress friendly at all.
widget.php I have the php that displays the form like this:
<form method="POST" action="<?php echo plugins_url( 'step2.php' , __FILE__ ) ?>" name="Calculate" onsubmit="return checkInput(this)">
The form is then rendered on the page in html like this:
<form method="POST" action="http://example.com/wp-content/plugins/geoquote_plugin/views/step2.php" name="Calculate" onsubmit="return checkInput(this)">
When submitting step1 the url for step two is:
Is there a way to rewrite the URL for step two to become something like this:
Even if it's not possible in the html it would be nice to not have
/wp-content/plugins/geoquote_plugin/ displayed in the url after submitting step one and redirecting to steop two. I know I can change th wp-content folder and plugins folder name, but I'd rather rewrite this to make the plugin work for any site as a wordpress plugin. Each step is a form written to a seperate file. Without rewriting every file of the prebuilt plugin, how can I rewrite the URLS?
I tried this but it didn't do anything:
RewriteRule ^/quote/step-2$ http://example.com/wp-content/plugins/geoquote_plugin/views/geoquote_step2.php [QSA,NC,L]