Skip to content

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

License

Notifications You must be signed in to change notification settings

craigsimps/simple-search-rewrite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages