This plugin allows YOURLS to work with alias hostnames for the server.
This plugin is useful when you change the hostname of your server but you still want the old hostname/s to continue working (assuming the old hostname/s is/are still correctly configured in DNS).
It also allows you to use YOURLS with your server's IP address.
- Old hostname was
toolong.hostname.com - Hostname changed to
sho.rt(toolong.hostname.comstill in DNS) - Install and activate the
allow-aliasesplugin - The following should now work:
http://sho.rt/yourlshttp://toolong.hostname.com/yourlshttp://<IP address>/yourlshttp://<any other alias>/yourls
- Copy the
allow-aliasesfolder touser/plugins/. - Activate the plugin in the YOURLS admin interface.
That's it.