Levinshtein link fixer (aka the Levinator) code, now available
Ian Lurie Oct 15 2010
Well, after spending 45 minutes trying to figure out github, I’ve realized I’m not as much of a nerd as I thought.
So, in the mean time, here’s a nice ZIPped archive of the code for the Levenshtein link redirector I’ve written in PHP. I’ve named it the Levinator – Dr. Doofenshmirtz would be proud.
I’ve talked about it before, but here’s the rundown.
What it does
This tool compares a list of good URLs and 404 URLs.
Then, using Levenshtein distance calculation, it figures out the closest-matching good URL for each broken one.
Finally, it generates a list of 301 redirects, .htaccess-style, so you can set up redirection.
- Basic knowledge of coding (very basic)
- A list of good URLs on your site
- And a list of 404 errors – easy to get from Google Webmaster Tools
I’m releasing this under Creative Commons Share-Alike and require attribution.
The Levinator by Ian Lurie is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Have at it:
[ Download the Levinator ]
CEO & Founder
Ian Lurie is CEO and founder of Portent and the EVP of Marketing Services at Clearlink. He's been a digital marketer since the days of AOL and Compuserve (25 years, if you're counting). He's recorded training for Lynda.com, writes regularly for the Portent Blog and has been published on AllThingsD, Smashing Magazine, and TechCrunch.Ian speaks at conferences around the world, including SearchLove, MozCon, Seattle Interactive Conference and ad:Tech. He has published has published several books about business and marketing: One Trick Ponies Get Shot, available on Kindle, The Web Marketing All-In-One Desk Reference for Dummies, and Conversation Marketing.Follow him on Twitter at portentint, and on LinkedIn at LinkedIn.com/in/ianlurie. Read More