• Resolved sn0wtec

    (@sn0wtec)


    Dear readers

    I tried to setup a custom url redirect, but failed miserably. I can’t get it to work the way I want and I am missing the required knowledge to find out why.

    I want to redirect all urls ending with /?phrase={search term} (at the end are parameters that should be passed along) to a url looking like this: /?post_type=product&s={search term}

    However, regardless how I set it up or tried my way with asteriks and marking the regex option, the destination-url always looks like this: /?/?post_type=product&s=*{search term}. So there’s this extra /? at the beginning aswell as the * infront of the search term that need to go.

    Does anybody know how I can fix this? Any help appreciated. Thanks.

    You can try it yourself if you visit https://shisha-sandro.ch/?phrase=amy, which I wanted to redirect to https://shisha-sandro.ch/?post_type=product&s=amy

    I set the redirect up like this: https://i.imgur.com/f7rHs7g.png with ignoring all parameters and passing them to the target.

    • This topic was modified 3 years, 11 months ago by sn0wtec.
    • This topic was modified 3 years, 11 months ago by sn0wtec.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Need help with a custom redirect’ is closed to new replies.