Plugin for YOURLS v1.7 (earlier versions not tested). Adds a custom API action regenerate_url
, which generates a new keyword for a URL that has already been shortened.
The API action regenerate_url
accepts two parameters:
old
: the URL you want to regenerate. Accepts both keywords (abc
) and shortened URL's (http://sho.rt/abc
).new
(optional): the new keyword for the shortened URL. If this parameter is not passed, a random keyword will be generated (according to the rules and plugins you currently use).
- Copy this folder to
/user/plugins
. - Go to the Plugins Administration page (e.g.
http://sho.rt/admin/plugins.php
) and activate the plugin. - Have fun!
YOURLS' license, aka "Do whatever the hell you want with it".
Feel free to contact me through GitHub if you have feedback or questions!