https://github.com/ashanan/shorten
A URL shortener written in several different languages.
https://github.com/ashanan/shorten
Last synced: 6 months ago
JSON representation
A URL shortener written in several different languages.
- Host: GitHub
- URL: https://github.com/ashanan/shorten
- Owner: ashanan
- Created: 2012-01-15T22:49:38.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2016-09-03T16:43:49.000Z (almost 10 years ago)
- Last Synced: 2025-03-20T21:38:12.762Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This project is an attempt to explore various programming languages by writing the same non-trivial program (a url shortener) in a bunch of different ones.
Added the following rewrite rule in my apache configuration so that all paths starting with an underscore redirect to the script that handles the actual redirection.
RewriteRule ^/_(.*)/$ http://ashanan.com/shorten/php/redirect.php?id=$1
RewriteRule ^/_(.*)$ http://ashanan.com/shorten/php/redirect.php?id=$1