README.md 378 B

Php Sqlite Url Shortener

Simple url shortener in php with a sqlite database

For Apache add to .htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ decoder.php?q=$1 [QSA,L]

For Nginx, add to your server block:

server {
    location / {
        rewrite ^/(.*)$ /decoder.php?q=$1;
    }
}