Skip to content

UnixSage/ShortURL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copy/move config.php.example to config.php.
Update with your settings

$file - File where URLs are stored
$url - URL for your site
$num_last_items - number of previous URLs to display
$rewrite - 0/1 setting to use url rewriting, url will append directly to $url setting.
$history - 0/1 setting to enable displaying previous URLs


Rewriting URLs
If rewrite is enabled and $url is set to http://mysite.com/url then the resulting link will be:
http://mysite.com/url123 where 123 is the link number. The corresponding .htaccess entry would be:
RewriteRule url([a-z0-9]+) /url/?id=$1

About

Shorten URLs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%