Stops /search/...
URLs from working, resulting in a WordPress 404 page not found.
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.
- Download the latest tagged archive (choose the "zip" option).
- Go to the Plugins → Add New screen and click the Upload tab.
- Upload the zipped archive directly.
- Go to the Plugins screen and click Activate.
- Download the latest tagged archive (choose the "zip" option).
- Unzip the archive.
- Copy the folder to your
/wp-content/plugins/
directory. - Go to the Plugins screen and click Activate.
Check out the Codex for more information about installing plugins manually.
In a terminal, browse to your /wp-content/plugins/
directory and clone this repository:
git clone git@github.com:GaryJones/disable-search-slug.git
Then go to your Plugins screen and click Activate.
This plugin supports the GitHub Updater plugin, so if you install that, this plugin becomes automatically updateable direct from GitHub.
Please see CHANGELOG.md.
Built by Gary Jones
Copyright 2016 Gamajo Tech