WordPress Own Rewrite Rules

im trying to rewrite a Url with the following code in functions.php add_action(‘init’, function() { add_rewrite_rule(‘/agbz\/(\w*)\/\?page=(\w*)&memberID=([a-z]{1}\d*)&land=(\w*)&fa=(\w*)&vorname=(\w*)&nachname=(\w*)/miu’, ‘index.php?page_id=$matches[1]&page=member&memberID=$matches[3]&land=$matches[4]&fa=$matches[5]&vorname=$matches[6]&nachname=$matches[7]’, ‘top’); }); My URL is domain.de/agbz/userprofile/?page=member&memberID=Z4911331&land=deutschland&fa=zahnarzt&urltitel&vorname=Henryk&nachname=Donnerstag Can someone help me out of this? The URL is the same as before

Details

Automatically adding category filter based on search string

Like ebay and amazon, i want to implement something on my site wherby if someone searches e.g red dresses then the category “Women’s dresses” is only searched within. As seen as below, a generic ebay search for iphone only searches withn iphone and filters it specifically and automatically. https://www.ebay.co.uk/sch/i.html?_osacat=0&_odkw=hats&_from=R40&_trksid=p2334524.m570.l1313.TR12.TRC2.A0.H0.Xiphone.TRS0&_nkw=iphone&_sacat=0

Details