by nerdismftw.com on WordPress.org
Define only allowed routes for your website. Permalinks will be overruled. Wildcard Support.

Example
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:
Important:
Behaviour:
Syntax / Wildcards: