So I kinda participate a lot in these community forums and I wanted to keep my signature linking to my latest post without having to change my signature on all of them each time, I created this script that will get the latest entry submitted and will create a .htaccess file redirecting requests to a previous determined directory to the latest entry.
In order for this to work you will have to create the 'latest' directory inside your root directory or modify the script.
In my case I have 2 websites, and this script keeps the '/latest/' directory pointing to the latest entry on each of them (http://linuxevolution.org/latest and http://orvtech.com/latest the spanish version of this website)
Spanish version: Un CGI en BASH para mantener tu firma al dia en todos los foros en que participas.