I have a form with many many fields…
When submitting these fields, I use the POST method which hides the actual variables passed along to the PHP page.
However, I can’t get rid of the complete link.
Changing from GET to POST did make all the form fields invisible in the URL, but this part is still visible:
mydomain.com/bin/query#
I want it to be invisible, or say:
mydomain.com/search
I have mod_rewrite enabled so there is a possibility to do this with mod_rewrite I think, but I am new to mod_rewrite so I need your help…
How should I hide this URL?
If you need more input let me know…
When submitting a from you have to specify a action attribute for the form. I assume that your action is
mydomain.com/bin/query#but you want it to bemydomain.com/search. Then you should usemydomain.com/searchwithing the action attibute and the following rewrite:That would show
mydomain.com/serachin the browsers URL.EDIT: Using the QSA flag you can pass GET paremeters to your query script. The NC makes the rewrite case-insensitive.
Your form should look like this: