4zero4 makes your 404 pages useful. When a visitor reaches a URL that no longer
exists, the plugin builds a search query from the requested address and redirects
the visitor to your site’s search results, so they land on relevant content
instead of an empty error page.
For example, a request for /my-old-product-name/ that no longer resolves is
turned into a search for “my old product name”.
Key points:
The behaviour can be customised with filters:
p4zero4_search_terms — change (or clear, to skip) the terms extracted from the URL.p4zero4_redirect_url — change (or clear, to cancel) the destination URL.p4zero4_redirect_status — change the HTTP status code (default 302).