Fix URLs With Double Slashes
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.
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.
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 from addresses of a previous static site, such as /about.html or /services/web.php, to the WordPress page with the same name.
After switching from /2019/05/post-name/ style permalinks to plain post names, sends visitors and search engines from the old dated addresses to the right posts.
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.
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 from the shop, product, cart and checkout pages to the My Account login form, for wholesale and members-only stores.
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.
Redirects logged-in users who visit the homepage to a members area, dashboard or account page, while guests still see the normal homepage.
Redirects old URLs to new ones with a 301 status from a list you maintain in the snippet. Good for a handful of moved pages.