404 redirect based on url

Question

I have a link like this:

https://www.example.com/bh-job/38/?title=digital-marketing-intelligence-expert

When I surf to the page I’m redirected 404 page because the page doesn’t exisit. The page doesn’t exist but I would like to redirect to https://www.example.com/jobs instead.

I also have another page like this:

https://www.example.com/bh-job/121/?title=sem-manager

And this is an actual page and can be found.

So I would need a check where I redirect from the 404 page to /jobs page WHEN the link start with https://www.example.com/bh-job/ and can’t be found. How could I do this?

0
, , , nielsv 3 years 2020-06-06T23:10:20-05:00 0 Answers 91 views 0

Leave an answer

Browse
Browse