WP Force Lowercase URLs

By joshbuchea

★ 5.0/5 (5 ratings)6,000+ active installationsVersion 2.1.1

Perform a 301 redirect from an uppercase URL to the lowercase version for all non-admin URLs

Description

Perform a 301 redirect from an uppercase URL to the lowercase version for all non-admin URLs (that do not include a filename).

Please help by reporting any bugs or feature requests at the link below.

Bugs:

Questions/Comments:

  • http://joshbuchea.com/

Installation

Installation

  1. In your WordPress Dashboard go to “Plugins” -> “Add Plugin”.
  2. Search for “WP Force Lowercase URLs”.
  3. Install the plugin by pressing the “Install” button.
  4. Activate the plugin by pressing the “Activate” button.

Changelog

2.1.1

  • Security: prevent redirects to other hosts from crafted URLs (open redirect hardening)
  • Fix: no longer redirects WordPress REST API URLs (/wp-json/), which broke case-sensitive routes
  • Fix: undefined index notice for REQUEST_URI when run without a web request (WP-CLI, cron)
  • Tested up to WordPress 7.1

2.1.0

  • Fix: undefined index notice for QUERY_STRING (props jamesryanbell)

2.0.1

  • Version bump

2.0

  • Ground up rewrite
  • URLs with params are now converted & redirected to lowercase as expected

1.0

  • Initial commit