If Nothing Was Found
Add the parameter default_redirect_to where you can specify a default destination if the other criteria return an empty result. It accepts as value the ID of a post or page. If this parameter is omitted or if the post or page with this ID cannot be found, then the default destination is the home page.
Use these parameters for tracking the redirects in your statistics. Supported are Google Analytics (utm_source, utm_campaign and utm_medium) and
Piwik Matomo (pk_campaign and pk_kwd).
Redirect to the latest post that uses the tag with the ID 23 and add the campaign identifier “my_link” . If no post uses that tag, go to the post or page with the ID 12.
In most cases we are caching the final post for a given set of parameters. The only exception is “redirect_to=random” where we cache the entire set of posts from which we pick a random post.
The value is the cache lifetime in seconds.
There are two ways how you can turn on caching:
Add the parameter cache to the URL.
Redirect to a random post and cache the pool of posts for 120 seconds.
Add the following constant definition to wp-config.php. This constant takes priority over the URL parameter.
define('CHATTY_MANGO_RUTP_CACHE', 600 );
By default, the plugin tries to suppress filters in order to avoid interference from other plugins. In some cases, however, you might want them to interfere, for example if a multilingual plugin filters the posts by language. In that case just add “suppress_filters=0″ to the URL.