Redirects search results from /?s=query to /search/query/, and converts %20 to +.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Licence
Readme.md
Readme.txt
simple-search-rewrite.php

Readme.md

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.