https://github.com/btbytes/shrt
stupid simple URL redirection
https://github.com/btbytes/shrt
Last synced: 9 months ago
JSON representation
stupid simple URL redirection
- Host: GitHub
- URL: https://github.com/btbytes/shrt
- Owner: btbytes
- Created: 2011-06-15T20:11:13.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-06-16T03:03:24.000Z (almost 15 years ago)
- Last Synced: 2025-07-17T17:23:59.062Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shrt
Stupid Simple URL Redirection
### Why?
* You want a URL shortner and redirector. That is http://go.mydomain.com/magic should go http://www.myreallylongcomapnyname/geography/language/product/campaigncode/blah
* You are not looking to build a SEO business based on URL shortening services.
* You don't want to use all the multi-million dollar URL shortners.
* You don't want to contribute to link rot by using someone else's short lived "SEO startup"
* You are comfortable using a text editor.
* You understand that a URL shortening "service" is not.
* You know how to edit a file, configure a web server.
* You don't want to "maintain" this service anymore than getting a root canal.
* Less is more.
### How
* put `index.php` and `links.txt` in the docroot of the domain.
* add rewrite rule (see nginx.conf for nginx example) to handle requests
* add new shortcuts to `links.txt` in `shortcut[TAB]url` format.
### Who
[Pradeep Gowda](http://twitter.com/btbytes)
### Source
* [github/btbytes/shrt](http://github.com/btbytes/shrt)