I’ve read other posts about how to potentially do this but am looking for a working solution. I’m also aware I can customize site texts, but that’s not a solution for this use case.
What would you like done?
A way to redirect to one url on page-forbidden, and another url on page-not-found. It can be a plugin, a theme component, some javascript that I paste into admin > customize > theme > custom css/html, or some other solution. I do not want to set up Apache or Nginx. The urls will not change often and can be hard-coded.
When do you need it done?
In the next two weeks.
What is your budget, in $ USD that you can offer for this task?
Open to suggestions.
*** If interested, please PM me. Do not post here saying “I’ll do it”.
Apologies, please post here then. I’ve had cases in the past where someone posted publicly “I’ll do it”, but I didn’t want to hire that person. Other (better) candidates then don’t throw their hat in the ring because the job is taken.
I’ve tried that, but I don’t see any difference. If I go to /foo with it enabled or disabled, I get the same thing. (I’ve customized the text to try to give them a clue why, but that’s not very satisfactory.)
But /foo doesn’t exist, so that’s the right message (you can customize it to say just “does not exist” and remove “not found” as I wrote while you were writing your reply)
You want to change the behavior for page-forbidden. That works as you ask
I’m pretty sure this feature does what you’re asking for.