Consistent Permalinks
Enforce consistency in WordPress permalink casing for incoming requests.
by Brandon Nifong · github.com/log1x/consistent-permalinks · website
★ 7stars
3release downloads
2.9kcomposer installs
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/log1x/consistent-permalinks/releases/download/v1.0.0/consistent-permalinks-v1.0.0.zipAlso on Packagist as log1x/consistent-permalinks:
composer require log1x/consistent-permalinksFrom the readme
Consistent Permalinks
Consistent Permalinks is a lightweight WordPress plugin that improves URL consistency by automatically redirecting valid paths containing uppercase characters to their proper lowercase equivalent.
Consider these two URLs that point to the same page but differ in casing:
- URL 1: https://wordpress.com/blog/2024/11/12/wordpress-6-7/
- URL 2: https://wordpress.com/blog/2024/11/12/WORDPRESS-6-7/
Despite post slugs always being lowercase, WordPress will load the page with either URL as-is relying solely on the defined rel="canonical" link element for users and search engines to determine the original version of the URL.
This plugin instead redirects such mismatched URLs to their intended canonical lowercase version while preserving query parameters, enhancing user experience and potentially improving SEO.
Requirements
- PHP = 8.0
Installation
Composer
Install via Composer:
Manual
Download the latest release .zip and install into wp-content/plugins.
Bug Reports
If you discover a bug in Consistent Permalinks, please open an issue.
Contributing
Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciat
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v1.0.0 | Dec 31, 2024 | consistent-permalinks-v1.0.0.zip | 3 |