title: Form submit to get clean url
body: <p>I don't know if I asked it right. I am a beginner.
  I am building a website where items can be searched. There is a form in the website and the value is searched using php get method. And the url after form submit is something like this.</p>
  
  <p>example.com/?q=item </p>
  
  <p>I modified the htaccess file so that I can use example.com/item/ to get the same result, Which works.</p>
  
  <p>What I need to do is redirect to example.com/item/ after user submits the form . How can I achieve this? Should I use javascript or php or which is better?</p>