Skip to content

GaryJones/disable-search-slug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 PluginsAdd 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.

Git

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.

Updates

This plugin supports the GitHub Updater plugin, so if you install that, this plugin becomes automatically updateable direct from GitHub.

Change Log

Please see CHANGELOG.md.

Credits

Built by Gary Jones
Copyright 2016 Gamajo Tech

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages