Skip to content
url shortener written in php (with MySQL or SQLite) with history by users
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.htaccess config tested and approved May 5, 2015
LICENSE
README.md Update README.md May 5, 2015
commun.css
cookie.js
delete-icon.png add icon and add the js functions file Apr 19, 2015
index.php forkme added May 15, 2015
installation.php
list.css add another delete function May 14, 2015
list.php add another delete function May 14, 2015
sunset.png SQLite added and installation file Apr 30, 2015

README.md

simple-shortener

Simple shortener working with MySQL or SQLite database in php and small javascript functions.

This shortener create a ID for every user to have a list of short url create by user (working with cookie). The user can add comments for the link to find it faster into its history.

Nice shortcut added. The shortcut will create a new short url of your current page when you click on it.

Writed to work into subfolder. (don't need to be at the root)

=======

File installation.php to execute at first access. This php file need the +w mode on the folder (only the first time, you can remove the writing after the install) is you choose the SQlite database

============= #####Nginx configuration :

if (!-e $request_filename) {
    	rewrite ^/([^/]*)$ /index.php?site=$1 last;
}

Think about remove access to the sqlite file (and .htaccess) with :

location ~* \.(sqlite3|ht)$ {
        deny all;
}

#####Apache configuration (.htaccess) : tested and approved :) (delete the file if you are on nginx)


####Credit :

Based on code provided by [SilouFR](https://github.com/SilouFr)

You can’t perform that action at this time.