<div class="site_search">
<form method="get" action="<?php echo SITE_URL; ?>search.php">
<input type="hidden" name="active" />
<select name="by">
<optgroup>
<option> Songs</option>
<option> Singers</option>
</optgroup>
</select>
<input name="search" placeholder="Search..." type="text">
<input type="submit" value="Search">
</form>
</div>
The Above is my Html Form Code after hitten the and inputting the data into search bar
my form will redirect the user to http://domain.com/search.php?active=&by=Singers&search=haroon+bacha
as you can see the action attribute has <?php echo SITE_URL; ?>search.php
the main purpose to my post is how to convert this complex default url pattern into clear and clear url and friendly for the users or search engines like http://domain.com/search/singers or songs/keywords i.e haroon + bacha
please tell me the url pattern for my .htaccess file thanks!