Redirect all "page not found" navigations to an external URL

(Aseem Chiplonkar) #1

We would like to redirect all invalid urls for the forum i.e. all “Not found” to be redirected to an external URL.

Can it be done using Permalinks? Or Some other way?

We have a hosted solution so can’t run commands as such.

(Sam Saffron) #2

You would need a custom plugin for this now.

(Aseem Chiplonkar) #3

Could we get some pointers as to what should the core code for the redirect be?

(Sam Saffron) #4

You are not looking for a redirect here, honestly the only way I can think of doing this is monkey patching a bunch of places.

Also a 404 redirecting is terrible practice, a custom 404 page is far more defensible.

(Aseem Chiplonkar) #5

Alright. Customisation override it is :+1:

Thanks Sam :slight_smile: