A simple plugin for YOURLS -
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LICENSE Initial commit Jun 14, 2015
README.md Update README.md Dec 5, 2016
plugin.php Update plugin.php Dec 5, 2015


404 Redirect

Plugin for YOURLS.


A simple plugin that will set the 404 header if the link ID is unknown. This was made due to the weird configs I have on my nginx install which caused nginx not to give a 404 error page but just a blank white page.


  1. In /user/plugins, create a new folder named 404-redirect.
  2. Drop these files in that directory.
  3. Go to the Plugins administration page ( eg http://sho.rt/admin/plugins.php ) and activate the plugin.
  4. Add " define( 'CON_404_PAGE', '/* Path to error page from webserver root*/' ); " to config.php Example: " define( 'CON_404_PAGE', 'errorpages/404.html' ); "
  5. Have fun!


Released under the MIT License.

Contact and bug reports

You may contact me at me[at]1conan.com for further questions.

If you find a bug, please kindly open an issue here.