I have this search form in my drupal site.
<form id="mysearch" method="get" action="<?php echo $base_url.'/search/node/'; ?>">
<input type="text" maxlength="150" id="search" name="s" class="input">
<input type="submit" value="Search" class="button">
</form>
I have problem is that when I am submit the form it will pass the query like that
http://mysite.com/search/node/?s=xyz
Here I would like to change the URL something like this to search in my site.
http://mysite.com/search/node/xyz
Can anyone help me how can i achieve this thing.
I have put this code for URL Change:
$("#adminbarsearch").submit(function(e) {
$url = $("#adminbarsearch").attr("action") + $( "input:first" ).val();
e.preventDefault();
window.location.href = $url;
});
Instead of this Can we change the URL by using the .htaccess