WordPress plugin intelligence profile

Permalink Validator

Validates the URL used and if not matching the official permalink then it issues a HTTP 301 or HTTP 404 message.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 2.6
Current version0.7
WordPress coverageTested up to WordPress 2.6
Minimum stackWP 2.0.0 · PHP —
Directory statusactive
Last directory update17 Aug 200917y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Permalink Validator version 0.7 as active, updated 17y ago and tested up to WordPress 2.6.

Overview

About this plugin

3 now includes validation of the permalink URL when using Apache web server,

but if using IIS then this plugin is still relevant.

Permalink Validator helps Search Engine Optimization (SEO) as it prevents duplicate

contents on your WordPress blog:

  • Adds trailing back-slash if missing (Can also be done with htaccess or isapi_rewrite ).
  • Adds or removes www prefix according to your permalink structure (Can also be done with htaccess or isapi_rewrite).
  • Forces a correct 404 page instead of showing an empty search result when using an invalid URL
  • Works only on post, pages and categories. Archives based on date (Daily, Monthly, Yearly) and search-result-pages should use noindex. Feed and trackback pages should be added to the robots.txt.
  • Fixes pagination for WP on IIS.
  • Fixes trailing slash for pages and categories on WP 2.2 when not having trailing slash in post permalink structure.

WordPress it very forgiving when supplying an URL that doesn’t match the

actual permalink to a post or a page. This is caused by WordPress using some

very greedy wp_rewrite_rules, which accepts almost any URL as valid.

This means that multiple URLs could be used to reach the page, which search engines

sees a duplicate content and leads to penalty.

For example it will accept the following permalink URL as valid:

>

com/post/hello-world/2

Even though the official URL is this:

>

com/post/hello-world/

Permalink Validator makes a hook to template_redirect, and then adds some

extra validation of the URL supplied before actually calling the

theme-templates.

Version History

8

  • Fixed PHP Warning: strpos() [function.strpos]: Empty delimiter
  • Converted the PHP file from UTF8 to ANSI (Removed special BOM character in file beginning)

7

  • Permalink Validator will not perform redirect of POST server request

6

  • Fixed a redirection bug introduced in 0.5 when the front page is a page of posts

5

  • WordPress 2.3 includes permalink validation (canonical urls) when using Apache, so this plugin should now only be used with IIS
  • Added support for HTTPS urls
  • Added support for special IIS installations where PATH_INFO and SCRIPT_NAME is the same
  • Added small hack to exclude pages from validation (One is required to edit the source to use it)
  • Added detection of the plugin Jerome’s Keywords

4

  • Better guessing of a proper REQUEST_URI
  • Finds the proper REQUEST_URI when using isapi_rewrite
  • Finds the proper REQUEST_URI when using IIS Mod-Rewrite
  • Improved validation as it nows expects a proper REQUEST_URI (Guess Apache is now supported)

3

  • Fixes trailing slash for pages and categories in WP 2.2 when using a post permalink structure without ending slash.

2

  • Added support for static front page.
  • Added detection of integrated BBPress.
  • Checks that WordPress has been started before adding hooks

1

  • Fixes REQUEST_URI for WP on IIS, which also fixes pagination.
  • Handles permalink structure with or without index.php.
  • Handles default permalink structure using only post-id.

Testing Procedures

For each of the different permalink structures:

  • Default permalink structure (Using query string)
  • Permalink structure with index.php
  • Permalink structure without index.php (Using ISAPI_rewrite)
  • Permalink structure ending with.html
  • All the above in a sub-directory

Tries the following pages:

  • Front page and paged
  • Static page
  • Post page
  • Category page and paged
  • Front page as static page (WP 2.2+)
  • Front page as post page (WP 2.2+)

Contributors

  • Scott Yang for giving me the idea and the example of to how make this plugin.
  • Gabe Anderson for giving me the initiative to release this plugin.
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • 301
  • 404
  • iis
  • permalink
  • redirect
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 2.6

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 2.6.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to2.6
Minimum requirementsWordPress 2.0.0 · PHP not listed
Update activity17 Aug 200917y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.