Reputation: 445
Right now I'm using a default wordpress search:
<input type="text" name="s" placeholder="Search here" id="search" value="<?php the_search_query(); ?>" />
When you enter and hit search, by default it goes to:
mywebsite.com/?s=query
What I want is to go to:
mywebsite.com/query
without "?s="
Basically, I won't be using it for an actual search, but more of appending the value after mywebsite.com/
Maybe there's just an easy php code for a form?
Sorry I'm new.
Thanks for your help.
Upvotes: 1
Views: 61
Reputation: 445
Found the working solution:
<form name="menu_search" action="load.php" method="get" onsubmit="document.location.href = 'https://www.yourwebsite.com/'+this.q.value+''; return false;" >
<input name="q" id="videoSearch" />
</form>
Upvotes: 2