I have a simple search form that, when submitted, shows the following URL:
When I would like it to display like this:
I can do this when creating links on my site, but not sure how to change the following form:
<form action='aromatherapy.php' method=GET>
<input name=t type=hidden id='t' value='8' />
<input name=q type=text size=27 maxlength=35 />
<input class='button medium green' type=submit value='Go' />
No a form can't make use of mod_rewrite - but that's not the real question in your mind.
What you meant to ask was a means to reformat the link displayed when submitting the form.
What I would do is simply use method="POST" rather than your method="GET". That would conceal the query string you're concerned with.
What you're really asking is whether you can use mod_rewrite to make a "loopy redirection." That answer is yes but I'll merely refer you to the tutorial linked in my signature as there are a couple of ways to do this in the sample code section. If you're not making use of reference material posted here, answering these questions constitutes "spoon feeding." Read then ask questions, if you please.
This topic is now closed. New replies are no longer allowed.