Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garyjones/disable-search-slug
WordPress Plugin: Stops /search/... URLs from working, resulting in a WordPress 404 page not found.
https://github.com/garyjones/disable-search-slug
Last synced: about 2 months ago
JSON representation
WordPress Plugin: Stops /search/... URLs from working, resulting in a WordPress 404 page not found.
- Host: GitHub
- URL: https://github.com/garyjones/disable-search-slug
- Owner: GaryJones
- License: gpl-2.0
- Created: 2016-07-07T11:55:12.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2016-07-07T16:10:14.000Z (over 8 years ago)
- Last Synced: 2024-10-09T02:41:26.303Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Disable Search Slug
Stops `/search/...` URLs from working, resulting in a WordPress 404 page not found.
## Description
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.
## Installation
### Upload
1. 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__.### Manual
1. 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](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
### Git
In a terminal, browse to your `/wp-content/plugins/` directory and clone this repository:
~~~sh
git clone [email protected]:GaryJones/disable-search-slug.git
~~~Then go to your Plugins screen and click __Activate__.
## Updates
This plugin supports the [GitHub Updater](https://github.com/afragen/github-updater) plugin, so if you install that, this plugin becomes automatically updateable direct from GitHub.
## Change Log
Please see [CHANGELOG.md](CHANGELOG.md).
## Credits
Built by [Gary Jones](https://twitter.com/GaryJ)
Copyright 2016 [Gamajo Tech](https://gamajo.com)