Halloween Sale 15% off Ends in See the plans

Snippet Library

Redirects snippets for WordPress

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.

1–5 of 5 snippets “migration”

  • PHP Redirects

    Redirect Old Date-Based Post URLs

    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.

  • PHP Redirects

    Redirects From a CSV File

    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.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.