is an extremely simple, personal url shortener written in PHP with MySQL and mod_rewrite.
This fork is NOT affiliated with Shaun Inman. Please do not contact him for support. It adds iOS web app support, and a button for Twitterrific on iOS.
-
Open /lessn/-/config.php in a plaintext editor and create a Lessn username and password then enter your database connection details.
-
Upload the entire /lessn/ directory to your server. For the shortest urls, place it at the root of your site and rename to a single character. Example: http://doma.in/x/
-
Visit http://doma.in/x/-/ to Lessn a new url and grab the bookmarklets (the required database table is created automatically the first time you visit Lessn).
NOTE: If your Lessn'd urls aren't working you probably didn't upload the .htaccess file. Enable "Show invisible files" in your FTP application.
- Using a tool like PhpMyAdmin or the MySQL CLI change the checksum index type to INDEX (from UNIQUE).
- Replace all files and directories in /-/ with the updated versions in this archive except /-/config.php.
- (Optional) Define a customized API_SALT in /-/config.php
- Replace all files and directories in /-/ with the updated versions in this archive except /-/config.php.
- (Optional) Define a customized API_SALT in /-/config.php
- Replace /-/index.php with the updated version in this archive (only LESSN_VERSION changed).
- In /index.php replace line 9 with lines 9-10 from the updated version in this archive.
- Replace all files EXCEPT /-/config.php.
Lessn is offered as-is, sans support and without warranty. Copyright © 2009 Shaun Inman http://shauninman.com/