Redirect URL to Post – WordPress Plugin

Redirect URL to Post is the best plugin to redirect your visitors to a random post, your first post, your latest post, the previous or next post, or other more complex searches, like the latest post of author John Doe that is at least one month old. You simply enter an URL (something like that takes you directly to the resulting post in single post view.

The result is specified by the query parameters in that URL. While the URL remains unchanged, the destination of the redirection depends on the current post inventory.

Possible applications are:

  • Link to a random post.
  • Link to your first or your latest post.
  • Link to the previous or next post.
  • Promote your latest post with one permanent link from a menu or in a newsletter. Readers won’t have to go through a list – the link will always take them directly to the latest post in single-post view. And you won’t have to manually update that link every time you publish a new post.
  • Link to the latest post of a particular author or category.
  • Add a menu item or button that links to a random post and increase page views (which is a SEO ranking indicator).
  • Load the latest post that contains a certain phrase into a frame of another website.

The plugin does not offer any settings in the admin back end. You achieve all via the parameters in the URL.

redirect url to post icon-256x256
redirect url to post banner

Some additional features:

  • Caching: The plugin offers caching of database query results, which reduces the burden on the database particularly when you use random posts.
  • Default target: Choose a post or page where the redirect will go if no matching post was found. By default, this is the home page.
  • Tracking: Append parameters to the resulting URL so that you can track the visitors in your web statistics (Google Analytics, Matomo, …).
  • Sticky Posts: Turn on or off whether to consider sticky posts.
  • Suppress filters: Turn on or off whether you allow other plugins (like multilingual plugins) to change the pool of posts.
  • Random with bias: Go to a random post, but with a higher probability to a group of old or new posts.

Watch that screencast, created by WPBeginner:

Check out my other plugins

Install the plugin Tag Groups and sort your WordPress tags into groups – by topic, by year, by place, by anything. Now you can use tags to filter posts.


This plugin is available for free! Install Redirect URL to Post directly from your blog or download the files from the WordPress repository.

current version: 0.24.0

Licenses and Credits

Please find the license information in the WordPress repository or on the About page of the plugin.

Tip Jar

Yes, this plugin is free but it takes much effort to maintain it and to provide support. Your donation is a great way to keep me motivated! If you travel, please book your hotel via this affiliate link so that I will receive a percentage.If you find this plugin useful, I would also appreciate a five-star-rating.