Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



33 Commits

Repository files navigation

Ji1 Link Shorter Script in php


ji1 is a simple object oriented script written in php that allows you to make shorter link without losing your seo. with 301 redirect.


you can deploy script in your server. this package uses Macaw package for routes.

first you need clone the project in your server and you must install required composer package by this command:

    Composer install

Configure web server


if you use apache you don't need to do anything because apache's configuration has stored in .htaccess file.


if you use nginx you need to put this lines in your website configuration to redirects all routes into index.php file

    autoindex off;
    location / {
        try_files $uri $uri/ /index.php?/$uri;
    rewrite ^/(.*)/$ /$1 redirect;

    if (!-e $request_filename){
        rewrite ^(.*)$ /index.php break;

Finish Installation

you need edit Config file that stored in Controller\Config and then you must change the variables to your database details.

    public static $siteUrl = "http://ji1.test/";  //put your current path url
    public static $mysqlHost = "localhost"; //put your server host here
    public static $databaseName = "ji1"; //put your database name that you crated
    public static $databaseUser = "root"; //put your database username that you created
    public static $databasePassword = "";//put your database password that you crated


run http://yourDomain.test/install.php to import database