I'm using htaccess friendly URL for profile page, for example:
RewriteRule ^([^/]+)/?$ profile.php?id=$1 [L]
and if i open link for example /some-user it works ok, and opens profile page.
Now inside this profile page i have search form,and how can i get a search value from link because when i submit i get this kind of link: /some-user?search=somekeywod
When submit i need to open url for that profile with search value.
My search form is simple:
<div class="input-group md-form form-sm form-2 pl-0">
<input class="form-control my-0 py-1 lime-border" type="text" placeholder="Search..." name="search" aria-label="Search">
<div class="input-group-append">
<button type="submit" class="input-group-text lime lighten-2" id="basic-text1"><i class="fa fa-search text-grey"
aria-hidden="true"></i></button>
</div>
</form>```