Redirect unsucessful searches to specific URLs
-
Hi,
Not sure if anyone can help or not but here’s what I want to do…
When a user searches for something using my wordpress search box and doesn’t get a match then I want to redirect that user to an URL but which URL they get redirected to depends on what they were searching for.
So for example I have redirect URL A.
Redirect URL A takes a user to a website about cats.
When a user searches for anything with the word cat or any other pre-defined search term and no results are found then redirect that user to URL A.Ideally I’d like to do it something like this:
Redirect URL A:
Keyword or Phrase 1 (required)
Keyword 2 or Phrase (optional)
” repeat “Redirect URL B
Keyword 1 or Phrase (required)
Keyword 2 or Phrase (optional)
” repeat “Any ideas?
Please try to be specific and simplistic in your terminology too as I’m not too familiar with coding or wordpress core. I can do simple programming things but nothing mega advance.
Thanks in advance!
- The topic ‘Redirect unsucessful searches to specific URLs’ is closed to new replies.