Atajlio is a very easy one-file link shortening service for your web server.
-
ensure that your server supports PHP (preferably version >=7.0), PDO and (PDO) SQLite3
-
download index.php
-
place this file in your webroot (you even can rename it, too!)
-
configure (if needed, standard values work as well) everything from line 68 to 72
-
$dbname
is the location of the SQLite3 database.default: atajlio.db in the same directory as this script
-
$minLinkLength
is the length of the generated shortlinks -
$defaultUrl
is the redirect URL when no arguments are given (no shortlink,...)tip: use your homepage or so
-
-
configure a URL rewrite to this script and the GET parameter
?l=...
e.g.
https://vgapps.de/-id1234 --> index.php?l=id1234
-
use this pattern to configure
$linkPrefix
e.g.private static $linkPrefix = 'https://vgapps.de/-'
; -
VERY IMPORTANT! SECURE THE DATABASE: DENY ACCESS FROM OUTSIDE!
-
make sure that Atajlio can write in the database directory (default: own directory)
-
open the Atajlio file (default name: index.php) on the server so that Atajlio can install itself
-
Atajlio shows an admin URL after a successful installation. Use it like a short link to access the admin interface.