Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashanan/shorten
A URL shortener written in several different languages.
https://github.com/ashanan/shorten
Last synced: about 2 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 (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-09-03T16:43:49.000Z (over 8 years ago)
- Last Synced: 2023-04-11T08:24:26.042Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 1
- 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