{"id":2366,"date":"2003-02-23T16:02:48","date_gmt":"2003-02-23T19:02:48","guid":{"rendered":"http:\/\/brockerhoff.net\/bb\/viewtopic.php?p=302"},"modified":"2010-05-09T18:05:13","modified_gmt":"2010-05-09T21:05:13","slug":"eriks-reorg","status":"publish","type":"post","link":"https:\/\/brockerhoff.net\/blog\/2003\/02\/23\/eriks-reorg\/","title":{"rendered":"Erik&#8217;s reorg"},"content":{"rendered":"<p><a href=\"http:\/\/nslog.com\/\">Erik J. Barzeski<\/a> did a <a href=\"http:\/\/nslog.com\/archives\/2003\/02\/22\/grrrr_site_organization.php\">complete site reorganization<\/a> and is <a href=\"http:\/\/nslog.com\/archives\/2003\/02\/23\/grrrr_site_organization_favor.php\">asking<\/a>:<\/p>\n<blockquote><p>If you&#8217;ve linked to me previously, or I&#8217;ve sent you a TrackBack, <strong>please search your site for links to mine and update them.<\/strong>&#8230;<\/p>\n<p>Unfortunately, I don&#8217;t know what the etiquette is. People have links to my articles. Even I have links to my articles. &#8220;PermaLinks&#8221; are not very permanent. I don&#8217;t want to ruin the links other people have coded up, but I have to do something.<\/p>\n<p>What should I do? Please let me know.<\/p><\/blockquote>\n<p>Erik, I&#8217;m not sure what resources other weblogging software has, but in my case, I&#8217;d have to hand-update every link. I&#8217;ll do it if necessary, but this will change the timestamp and make a &#8220;recently edited&#8221; message to appear in every such post&#8230; rather awkward.<\/p>\n<p>My suggestion is: drop that funny 404 message you have now, and put a PHP script in its place. See <a href=\"http:\/\/www.onlamp.com\/pub\/a\/onlamp\/2003\/02\/13\/davidsklar.html\">this article<\/a> for details.<\/p>\n<p>In the script, set up an array associating the number in the \/archives\/000xxx.php with your new URL. This may be a hassle, but you only have to do it once &#8211; chances are, you already have this in some format. Then have the script return a &#8220;301 &#8211; Moved Permanently&#8221; response containing the new URL.<\/p>\n<p>And you can even return the funny message if the 404 doesn&#8217;t refer to \/archives&#8230; if you&#8217;d like some help with this, drop me a line. \ud83d\ude42<\/p>\n<p><strong>Update:<\/strong> it turns out Erik&#8217;s a PHP wizard and no, he doesn&#8217;t have the old-to-new URL table. So I went back and changed the 4 or 5 links I had to his site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Erik J. Barzeski did a complete site reorganization and is asking: If you&#8217;ve linked to me previously, or I&#8217;ve sent you a TrackBack, please search your site for links to mine and update them.&#8230; Unfortunately, I don&#8217;t know what the etiquette is. People have links to my articles. Even I have links to my articles. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-2366","post","type-post","status-publish","format-standard","hentry","category-meta"],"featured_image_src":null,"author_info":{"display_name":"Rainer Brockerhoff","author_link":"https:\/\/brockerhoff.net\/blog\/author\/rbrockerhoff\/"},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1q3Zc-Ca","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/posts\/2366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/comments?post=2366"}],"version-history":[{"count":0,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/posts\/2366\/revisions"}],"wp:attachment":[{"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/media?parent=2366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/categories?post=2366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brockerhoff.net\/blog\/wp-json\/wp\/v2\/tags?post=2366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}