/random/ Link to a Random Post
Makes /random/ open a random published post, a fun "Surprise me" link for menus that keeps readers exploring your archive.
Snippet Library
Snippets that send visitors where they should go: redirect after login or logout, from attachment pages, old URLs and empty searches, or to a maintenance page. Quick fixes when you only need a few redirects, not a redirection plugin.
Makes /random/ open a random published post, a fun "Surprise me" link for menus that keeps readers exploring your archive.
Permanently redirects addresses that contain double slashes, such as /blog//my-post/, to the clean version, avoiding duplicate pages from broken links and badly built URLs.
Sends visitors who open a page over plain HTTP to the secure HTTPS address with a permanent redirect, once your site URL is set to https.
Redirects users who cannot edit posts (subscribers, customers) to the homepage when they try to open the admin area. AJAX and admin-post requests keep working.
Records the addresses visitors request that do not exist, with hit counts, last seen time and referring page, and lists them under Tools > 404 Log so you can fix or redirect them.
Shows a "back soon" message with a 503 status to visitors while logged-in staff browse the site normally. The login page stays reachable.
Sends visitors who hit a missing page to the homepage instead of showing the 404 template.
Adds a "Redirect to" box to the post and page editor; when filled in, visitors who open that post are sent to the address you entered, on your site or elsewhere.
When an address like /services/old-offer/ no longer exists, sends visitors to the closest existing level above it, such as /services/, instead of a dead end.
Sends requests for resized images that no longer exist, such as photo-300x200.jpg after a theme change, to the original upload, fixing broken images in old posts and on other sites.
Sends visitors from addresses of a previous static site, such as /about.html or /services/web.php, to the WordPress page with the same name.
After you stop using an AMP plugin, permanently redirects the old /amp/ and ?amp=1 addresses to the normal pages, so search engines and shared links do not hit errors.
Remembers the address of each post or page you move to the trash and sends later visitors to its category, parent page or the blog page instead of a 404, even after the trash is emptied.
Sends visitors from the countries you choose to a regional site or page, using the country header added by Cloudflare, CloudFront or your host, with search engine crawlers left alone.
Sends visitors from a category archive to a hand-built landing page, for example /category/news/ to your Newsroom page, while posts keep their category.
Sends visitors who open wp-login.php?action=register to your own registration page.
Reads redirect rules from a redirects.csv file in wp-content, one "old path, new address, status" line each, so you can manage hundreds of redirects in a spreadsheet without a plugin.
Sends visitors who are not logged in to the login screen when they open the pages you list, and brings them back to the page after they log in.
Sends visitors who are not logged in from the shop, product, cart and checkout pages to the My Account login form, for wholesale and members-only stores.
Makes the whole front end private: visitors who are not logged in are sent to the login page and returned to the page they asked for afterwards.
Sends subscribers, customers and other users without editing rights from wp-admin to the WooCommerce My Account page or the homepage, with options to keep the profile screen open and hide the admin bar. AJAX and front-end forms keep working.
Answers requests for pages you deleted on purpose with a "410 Gone" status instead of a 404, so search engines drop them from results faster.
Takes customers to the shop page after they log in or register through WooCommerce, instead of the My Account dashboard.
Chooses where people land after logging in based on their role, for example editors to the posts list, customers to their account and subscribers to a members page.