- No stats
- One file
- PHP
- mysqli
- htaccess
- Create a database.
- Run the
setup.sql
and confirm that a table calledlink
was created. - Add the
.htaccess
andindex.php
files to the webroot. Visiting your web root with no query args or path should return404
. It's working!
- Visit
yourdomain.com?url=url-to-encode
whereurl-to-encode
is the url you want to encode e.g.yourdomain.com?url=https://twitter.com/gelform
. - You should see a shortened url e.g.
yourdomain.com/1aw3se4dr5t
.
- Visiting a shortened url e.g.
yourdomain.com/1aw3se4dr5t
will redirect you to the original url e.g.https://twitter.com/gelform
with a 301 (permanent redirect).