log1x/consistent-permalinks

There is no license information available for the latest version (v1.0.0) of this package.

Enforce consistency in WordPress permalink casing for incoming requests.

Fund package maintenance!
Log1x

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-plugin

v1.0.0 2024-12-31 07:36 UTC

This package is auto-updated.

Last update: 2024-12-31 12:47:11 UTC


README

Latest Stable Version Total Downloads Build Status

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

Installation

Composer

Install via Composer:

$ composer require log1x/consistent-permalinks

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 appreciated.

License

Consistent Permalinks is provided under the MIT License.