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).
Setup
Configuration:
- Modify fields in includes/config.php.
- Make sure mod_rewrite is on in apache.
- Generate .htpasswd in admin (htpasswd -c admin/.htpasswd userName)
- Set path in admin/.htaccess
- Add some links!
1) Create Database:
mysql -u -p < cgl.sql
If you are using XML1) Make sure links.xml is writeable by your web server
Using CGL:
- Add a link:
http://YOUR_PATH/admin/new.php - Reference the link:
http://YOUR_PATH/ - View your links:
http://YOUR_PATH/admin/list.php