As the topic - How do I rewrite a POST request from a form to a user-friendly URL with htaccess?
The scenario:
I have a webpage that uses a search-form. When I submit that form using method="post" it works flawlessly. BUT I don't get any text in the browser address-bar (of course), but that's exactly what I want! And that by using method="POST", NOT method="GET"!
Let's say I search for "banana". The PHP script translates the POST-request and the script shows all receipts with the word banana in it. But the URL then of course shows something like http://www.example.com/search/ (yes I use mod_rewrite for that). I want the URL to look like http://www.example.com/search/banana/.
The original request from the server looks like ....xample.com/index.php?p=search and the post is of course hidden and would otherwise be ....xample.com/index.php?p=search&q=banana.
I'm not new to mod_rewrite rules and conditions but I just can't get it to work...
Thanks in advance!