Content last modified Monday 6 March 2017
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
Article modified:
25 Oct 2010

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (4)

Alternative: Please check smd_short_url

Pros: no use of custom field – uses article ID – offers canonical <link> tag for individual articles

I concur that smd_short_url looks great for the job. I hadn’t seen it before creating jra_alias_urls. I guess one remaining advantage of jra_alias_urls is that the shape of the short URL is arbitrary. Also, there can be several short URLs — mind you, this makes little sense; it’s just a side-effect of using SQL LIKE.

Yes, creating a real alias is your unique selling proposition (USP).

But then you ca also use an URL shortening service which may add some analytics and redirecting server power.

lalaru:

Sorry. Can you answer to me about this bug? http://securityvulns.com/Zdocument66.html

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern