Directory / plugin

Disable Search Slug

v1.0.1 · by Gary Jones

Stops /search/... URLs from working, resulting in a WordPress 404 page not found.

View on WordPress.org

About this plugin

If bots are attacking your site by appending /search/a-random-string-or-word, then those pages may be getting indexed by search engines, or populating search logs.

This plugin disables that permalink structure.

Search forms will still work, and the search results page will use the less index-friendly ?s=search-term format.

Plugin tags