If you are familiar with WordPress, you should know that the WordPress site has a link http://wordpress.org/latest.zip. If the current release is 2.7, that link will download version 2.7. If 2.7.1 gets released, that link will download that for you. I’ve always loved that feature. So, when I recently launched my open source script Rotatee, I decided to steal that feature. So, if you visit http://rotatee.com/latest.zip, it’ll automatically download the latest version for you.
This can be achieved by a very simple method. If requires you to edit your .htaccess file in your domain root folder. Simply add this line to your .htaccess :
RedirectPermanent /latest.zip FULL-LINK-TO-THE-DOWNLOAD-FILE
RewriteRule latest.zip FULL-PATH-TO-THE-DOWNLOAD-FILE [R=301,L]
You have to update this file with the new link once you release a new version. In my case, it is currently:
RedirectPermanent /latest.zip http://rotatee.googlecode.com/files/rotatee-1.2.zip
This is the way I do it currently. If you know a simpler method, do let me know. And the advantage of using this technique is that you can simply refer as "download the latest version here" and point to this latest.zip link when you write blog posts or anything like that. Also, if you have "Download" links through out your site on many places, you need not update each of them individually. You can simple point them to this link.
Of course, this technique must have some other uses too. But, I can’t think of any, at the moment. If you know, do share with us.