YOURLS plugin that allows you to change the default behaviour of YOURLS to send 302 redirects instead of 301.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 3 commits ahead of EpicPilgrim:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


YOURLS plugin to send a 302 (temporary) redirect instead of 301 (permanent) for sites where shortlinks may change. This is a fork of the original 302-instead plugin by BrettR, hosted on GitHub at the following URL:

The plugin adds a menu option to allow you to select the mode you want to use:

  • 302 redirects for every URL (some clients may have old 301 redirects cached, you can't do much about that)
  • 301 redirects for every URL (this is the default YOURLS behaviour)
  • 302 redirects only for URLs that are not short URLs for the current YOURLS installation




Create a user/plugins/302-instead directory in YOURLS
Place the plugin.php file in above directory
Activate plugin in YOURLS

You can also clone the git repository into your plugins directory. This will allow you to update the plugin more easily.