What is the best way to do when I type a search on my site to get the url like mysite.com/searach/blabla/video
instead of mysite.com/?search=blabla&type=video
.
Please don't tell me that I have to use CodeIgniter because it doesn't help. I am sure that all I need is a small function in PHP.
This is my search.php
:
<form id="searchwrapper" name="searchform">
<input type="text" class="searchbox" id="txtSearch" name="search" alt="Search Criteria" />
<input type="submit" src="../images/empty.png" class="searchbox_submit"/>
<p id="circ">
<input type="radio" id="mp3" name="type" checked value="mp3"/>
<label class="circ-btn normal" for="mp3">mp3</label>
</p>
<p id="circ">
<input type="radio" id="album" name="type" <?php echo $radio2;?> value="album"/>
<label class="circ-btn normal" for="album">Album</label></p>
</form>
My .htacces
rules are set correctly; when I access my site directly using mysite.com/searach/blabla/video
, it works fine, but this is not the issue. I need to have my link like this when I type a search on my site. Instead I get this link and is not right mysite.com/?search=blabla&type=video
.