Possible Duplicate:
How to: URL re-writing in PHP?
I want to pass a clean url through search form in index.php(mvc)
ie:
<form>
<input type="text" name="search" onClick="if(this.value=='Search') this.value=''" onBlur="if(this.value=='') this.value='Search'" value="Search"/>
<button>Search</button>
</form>
It is sent to index.php and depending on the search parameter i.e $_GET['search']
it is passed to search controller
But instead of index.php?search=xyz
i want to pass /search/xyz
.