Redirect Missing Pages to the Nearest Parent Page
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.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
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.
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.
Permanently redirects addresses typed or linked with capital letters, such as /About-Us/, to their lowercase form, avoiding duplicate URLs and broken links.
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 who land on the Easy Digital Downloads checkout with an empty cart to your products page instead of showing "Your cart is empty".
Permanently redirects every request that arrives on your previous domain to the same address on your current domain, after a rebrand or domain move.
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.
Shortens category links from example.com/category/news/ to example.com/news/ and redirects the old addresses there permanently.
Stops comment reply links from creating ?replytocom= URLs that crawlers treat as duplicate pages, and redirects any such URL to the clean post address.
Removes comment feed links from the page head and redirects comment feed URLs to the homepage, while keeping the post feeds.
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.
After logging in on the My Account page, customers go back to the page they were browsing, such as a product or the cart, instead of the account dashboard.
Opens a chosen page directly when someone searches for an exact word or phrase, for example "contact" goes to your contact page and "returns" to your returns policy.
Redirects visitors and feed readers from your main feed to its address at a feed service such as FeedPress or Follow.it, while the service itself still reads your real feed.
Redirects logged-in users who visit the homepage to a members area, dashboard or account page, while guests still see the normal homepage.
When someone opens a page number that no longer exists, such as /category/news/page/40/ after you deleted posts, sends them to the real last page instead of a 404.
Redirects visitors who hit a missing page in a secondary Polylang language to that language's homepage, so they are not dropped onto a 404 page.
Takes shoppers straight to a product category page when what they search for is exactly a category name, such as "dresses" or "garden tools".
Redirects the single pages of post types that only make sense in a list, such as testimonials, FAQs or team members, to their archive or another page.