- No stats
- One file
- PHP
- mysqli
- htaccess
- Create a database.
- Run the
setup.sqland confirm that a table calledlinkwas created. - Add the
.htaccessandindex.phpfiles to the webroot. Visiting your web root with no query args or path should return404. It's working!
- Visit
yourdomain.com?url=url-to-encodewhereurl-to-encodeis 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/1aw3se4dr5twill redirect you to the original url e.g.https://twitter.com/gelformwith a 301 (permanent redirect).