movabletype

Existing movable type plugin that does URL shortening and redirection?


We send out a newsletter that has URLs in it. Rather than having foreign URLs directly, they all come to our website and then redirect to the outside world.

Right now the redirects are all done with HTML files. My goal is to have them all done with redirects in the .htaccess file. So I want to have the person who is entering all of this data enter it all through the movable type GUI.

My questions:

  1. Is there is plug-in for movable type that already does this?
  2. If not, is there a good template for creating a movable type that allows one to records in the MySQL database?

Thanks.


Solution

  • This could be done in the standard Entry interface in MT. Just dedicate a blog for these redirects. You could make the EntryTitle the redirect and have the EntryBody be the full URL (or use Custom Fields). Then just create an .htaccess template that loops through all the entries.

    <mt:Entries lastn="0">
    Redirect /<mt:EntryTitle dirify="-"> <mt:EntryBody>
    </mt:Entries>