Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.23 KB

Readme.md

File metadata and controls

33 lines (23 loc) · 1.23 KB

Simple Search Rewrite

Redirects search results from /?s=query to /search/query/, and converts %20 to +.

Description

This is a super-simple plugin which will turn WordPress' default /?s=query%20terms into /search/query+terms/ if you have pretty permalinks enabled.

This is something which I have been placing into a theme include or in a core functionality plugin until recently, but it makes sense to separate this functionality out into an individual plugin so it can be switched on and off independently.

The plugin has no administrative interface or control panel. Activation turns it on, deactivation turns it off. Once activated, performing a search using the standard WP search widget should give you a much nicer search URL.

Installation

  1. Install plugin.
  2. Activate the plugin through the 'Plugins' page in WordPress dashboard.

Changelog

= 1.0.1 =

  • Switch from using wp_redirect to wp_safe_redirect.
  • Update author information and tested up to value.

= 1.0 =

  • Initial Commit.