Custom Go Links

Wanna make short urls that have text that makes sense? Go links have two primary purposes: First, they can wrap a long url into a shorter version that is easier to type in and send around. Secondly, they can allow a link to be updated without having to modify the url. For instance, you could create a go link for a url like http://maps.google.com/maps?f=q&hl=en&q=mec&sll=51.044875,-114.084735& sspn=0.019804,0.039868&ie=UTF8&om=1&latlng=51044875,-114084735,3579370773247213599 to be http://go.mySite.com/mec If MEC ever moves you can update the backend representation without having to change your bookmarks. It's also a lot easier to remember :).

Custom Go Links has two primary advantages over normal url-shortening tools: First, a database is not required, it also can store your urls in an xml file; Secondly, CGL allows you to specify your own names instead of having them auto-generated (like a2ds31Y).

Download

Setup

Configuration:

  1. Modify fields in includes/config.php.
  2. Make sure mod_rewrite is on in apache.
  3. Generate .htpasswd in admin (htpasswd -c admin/.htpasswd userName)
  4. Set path in admin/.htaccess
  5. Add some links!
If you are using MYSQL:
1) Create Database: mysql -u -p < cgl.sql If you are using XML
1) Make sure links.xml is writeable by your web server

Using CGL:

  1. Add a link: http://YOUR_PATH/admin/new.php
  2. Reference the link: http://YOUR_PATH/
  3. View your links: http://YOUR_PATH/admin/list.php