Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
v0.2
About It:
Get it:
Rate it:
  • Helpful?
  • 1 Yes
  • 1 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

jra_alias_urls

The motivation for this plugin came from wanting short URLs in print media to reference articles with complicated URLs. What if, in a newsletter, we could say:

To read more, see: http://iicph.org/2010/a

instead of

To read more, try to type this accurately in your browser: http://iicph.org/review-the-woman-who-knew-too-much

and still get there?

The help explains the simple steps and the performance issues. In a nutshell:

  1. Dedicate a custom_X field to article alias URLs.
  2. Put the plugin tag 1st thing in the default_error page.
  3. Write the alias URLs in the field in articles following the simple rules.

The plugin uses a slowish LIKE SQL query, but it only happens when there’s a 404, and only happens once per article per browser as the HTTP 301 redirection should get cached.

I looked at the zem_redirect plugin for inspiration.

Article Request Count:
Keywords/tags:
Initially released:
2010-10-25
Posted here:
25 Oct 2010

You know you want to visit the Archives.
Published with Textpattern