Need a working solution to redirect on page-forbidden and page-not-found

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”.

FYI this is discouraged here on Meta.

People are encouraged to first publicly reply to topics in Marketplace if they are interested in taking on the work.

There is historical discussion on this here:

5 Likes

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.

1 Like

Maybe you just want the detailed 404 site setting?

That does stuff like

  • Oops! This topic has been deleted and is no longer available.
  • Oops! That page is private.
  • Oops! That page doesn’t exist or is private. (that one didn’t exist–I think you might want to change the text to remove the “or is private” part)
3 Likes

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.