{"id":55128,"date":"2017-03-16T18:10:28","date_gmt":"2017-03-16T18:10:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/redirect-old-links\/"},"modified":"2017-03-20T20:20:23","modified_gmt":"2017-03-20T20:20:23","slug":"redirect-old-links","status":"publish","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/redirect-old-links\/","author":13798963,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"4.7.33","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Redirect Old Links","header_author":"Ryan Hoover","header_description":"","assets_banners_color":"92a543","last_updated":"2017-03-20 20:20:23","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/ryanshoover\/redirect-old-links","header_author_uri":"https:\/\/github.com\/ryanshoover","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1680,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>Latest update expands the available permalink structures that the plugin can handle.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1627557","resolution":"128x128","location":"assets","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1627557","resolution":"256x256","location":"assets","width":256,"height":256}},"assets_banners":{"banner-1544x550.png":{"filename":"banner-1544x550.png","revision":"1627557","resolution":"1544x550","location":"assets","width":1544,"height":550},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1627557","resolution":"772x250","location":"assets","width":772,"height":275}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[905,939,727,186],"plugin_category":[59],"plugin_contributors":[83937],"plugin_business_model":[],"class_list":["post-55128","plugin","type-plugin","status-publish","hentry","plugin_tags-905","plugin_tags-permalinks","plugin_tags-redirect","plugin_tags-seo","plugin_category-utilities-and-tools","plugin_contributors-ryanshoover","plugin_committers-ryanshoover"],"banners":{"banner":"https:\/\/ps.w.org\/redirect-old-links\/assets\/banner-772x250.png?rev=1627557","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/redirect-old-links\/assets\/icon-128x128.png?rev=1627557","icon_2x":"https:\/\/ps.w.org\/redirect-old-links\/assets\/icon-256x256.png?rev=1627557","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Changing your link structure in WordPress can lead to all of your old links breaking and returning a \"404\". But no more! If someone goes to an old link for your site, I'll find the new link and redirect them there automatically.<\/p>\n\n<p>No configuration. No one-by-one setting of the new link structures. No wrestling with complicated regex patterns. Just install me and relax.<\/p>\n\n<p><em>Redirect 404s<\/em> works with posts, pages, and custom post types (like ecommerce products).<\/p>\n\n<ul>\n<li>Note - the plugin only works for permalink structures where the last \"chunk\" of the URL is the post name (also called the slug).<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to your \/wp-content\/plugins\/ directory<\/li>\n<li>Activate the plugin through the Plugins menu<\/li>\n<li>Done!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I configure the plugin?<\/dt>\n<dd><p>No configuration necessary! I automatically tests all 404 links to see if they might resolve to an existing post. If I find a post that matches, I'll just redirect the visitor to that post.<\/p><\/dd>\n<dt>How do you know when a post matches?<\/dt>\n<dd><p>I take the last \"chunk\" of the URL and assume it's a post name. Then I search for any posts with that name. If I find one, I redirect the user to the post I found. Since I use this method, I won't work for <em>all<\/em> permalink structures. But the vast majority end in the post name, so I'll work just fine on most sites.<\/p>\n\n<p>Examples:\n* \/2017\/02\/this-is-the-last-chunk\/\n* \/announcements\/this-is-the-last-chunk\/<\/p><\/dd>\n<dt>Do you work with custom post types like ecommerce products?<\/dt>\n<dd><p>Sure do! I'll search all public post types for the post name to see if I find one.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<ul>\n<li>1.0.0 Initial release to wordpress.org repository<\/li>\n<li>0.2 Update the query to search for all post names, instead of just matching off of <code>get_page_by_path()<\/code><\/li>\n<li>0.1 Initial release<\/li>\n<\/ul>","raw_excerpt":"Did you change your permalink structure and now have old links &quot;404ing&quot;? I&#039;ll redirect those old links to their new one for you.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/55128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=55128"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ryanshoover"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=55128"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=55128"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=55128"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=55128"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=55128"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=55128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}