Simple 404 Keyword Insertion
Simple 404 Keyword Insertion
Description
Simple 404 Keyword Insertion creates a page called “404-page” on activation. When a visitor hits a 404, the plugin serves that page with a [404-keywords] shortcode replaced by the sanitized keywords from the request URI. This helps create SEO-friendly 404 pages that reflect the content the visitor was looking for.
Installation
- Upload the plugin to
/wp-content/plugins/. - Activate it through the Plugins menu.
- The plugin will automatically create a page with the slug
404-page. Edit it to add your preferred 404 message, using the[404-keywords]shortcode wherever you want the request keywords to appear.
Faq
This is intentional. To serve the keyword-aware page so search engines can index it, the plugin sends a 200 OK (“soft 404”) rather than a true 404 response. This is the plugin’s core behavior. Note that search engines generally discourage soft 404s for genuinely missing content, so enable this deliberately on sites where keyword-aware landing pages are worth more than strict 404 signaling.
Edit the 404-page Page that the plugin creates on activation, like any other Page. Place the [404-keywords] shortcode wherever you want the keywords from the failed request URL to appear.
Reviews
Changelog
1.0.1
- Security, escaping, and code quality fixes.
1.0
- Initial release.