Allowed Routes

plugin banner

Define only allowed routes for your website. Permalinks will be overruled. Wildcard Support.

Author:nerdismFTW (profile at wordpress.org)
WordPress version required:4.0
WordPress version tested:5.2.3
Plugin version:1.1
Added to WordPress repository:07-12-2017
Last updated:26-09-2019
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:955
plugin download
Click to start download

Define allowed routes for your website, all other routes will return a 404 error. Permalinks will be overruled.

Login, Backend routes and local files (like wp-login.php) are always available to prevent a lockout.

Also delete all your page caches after enabling to prevent unwanted routing behavior.

Use cases:

  • Absolute control over all permalinks
  • Prevent unwanted search engine indexing
  • Be sure no custom post type adds unwanted permalinks
  • No frontend needed

Important:

  • The routing overrules permalinks and works like a whitelist. Only correct entered routes will go through. You should test the routing before using on production environments
  • Be careful using several routing- or redirect plugins at the same time
  • Do not forget to delete all your page caches after enabling/disabling the routing to prevent unwanting routing behavior

Behaviour:

  • The used protocol (HTTP or HTTPS) will be ignored
  • GET params will be ignored
  • Routes are case sensitive

Syntax / Wildcards:

  • The route / allows the index page (Check the checkbox \”Allow index page\”)
  • Wildcard * allows a single term with an arbitrary value (e.g. category//page/)
  • Wildcard ** permits all possible combinations of terms (e.g. category/**) This wildcard is only allowed at the end of a route
  • Wildcards are only allowed as complete terms. Correct: /foo//bar/** Wrong: /foo/ba/test**

Screenshots
ChangeLog