Redirect Attachment Pages
Sends visitors of media attachment pages to the post the file is attached to, or to the homepage for unattached files.
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.
Sends visitors of media attachment pages to the post the file is attached to, or to the homepage for unattached files.
Sends visitors to a different page after submitting depending on what they chose in a drop-down or radio field, such as a sales or support thank-you page.
Sends visitors who submit the search form without typing anything back to the homepage instead of showing every post.
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.
Sends visitors who land on the homepage to the matching language section (such as /fr/ or /de/) based on their browser language, once; their choice is then remembered.
Sends visitors to a different page after submitting a Fluent Forms form depending on an answer, such as separate thank-you pages for each service.
Sends people to a different page after submitting a Gravity Forms form depending on what they chose in one field, such as a sales or support thank-you page.
Sends visitors (and search engines) from single events that ended more than a set number of days ago to the main events page with a 301 redirect, keeping your calendar fresh.
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 customers who create an account from the My Account page to a page of your choice, such as a welcome page or the shop.
Sends people to a page of your choice (for example a welcome page) after they register through wp-login.php.
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 each user to a welcome or onboarding page the first time they log in, and to the usual place after that.
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 to a different thank-you page after a WPForms form depending on the option they picked, such as separate pages for sales and support.
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 the cart page with nothing in it straight to the shop page instead of showing an empty cart.
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".
Sends visitors who open wp-login.php?action=register to your own registration page.
Sends customers to your own thank-you page after a successful order instead of the default order received page, passing the order number along.
Sends first-time commenters to a page of your choice after they submit a comment, instead of back to the post.