Check the newer version: (https://github.com/abalesluke/SMUS)
PHP Simple-managable Url Shortener | CRUD(Create, Read, Update, Delete)
Demo site: https://url.craftverse.shop
Demo creds, Username:
guest
Password:guest
- Import the
url.sql
to your phpmyadmin/mysql database - Put all the files to your
htdocs
- Go to the folder named
core
and openconfig.php
fill it up with your credentials. - Login using default creds Username:
ninja
Password:ninja123
if you download this repository and go to the folder named z
you will see a file named .htaccess
and below are the content inside that .htaccess
RewriteEngine On
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ ./index.php?code=$1 [L]
this means that using .htaccess
to forward any subdirectory before /z/ subdirectory from the url to index.php?code=
to be read as a code.