{"id":1953,"date":"2014-05-05T20:47:35","date_gmt":"2014-05-05T20:47:35","guid":{"rendered":"http:\/\/justthesam.com\/?p=1953"},"modified":"2014-05-05T20:47:35","modified_gmt":"2014-05-05T20:47:35","slug":"redirect-typepad-posts","status":"publish","type":"post","link":"https:\/\/justthesam.com\/?p=1953","title":{"rendered":"Redirect Typepad posts"},"content":{"rendered":"<p>This site replaces my original Typepad blog which was at alwaysthecritic.typepad.com. I will probably disable the Typepad blog entirely in the long run (possibly even the short run) but for now I figured out a way to have the Typepad pages redirect to the relevant articles on this new site.<\/p>\n<p>Simply add an HTML widget to your Typepad sidebar, containing a little bit of JavaScript to modify the URL:<\/p>\n<pre>&lt;script type=\"text\/javascript\"&gt;\ndocument.location.href = document.location.href\n    .replace('alwaysthecritic.typepad.com', 'justthesam.com')\n    .replace('\/atc\/', '\/')\n    .replace('.html', '\/');\n&lt;\/script&gt;<\/pre>\n<p>This not only modifies the domain, but also loses the \/atc prefix and the .html from the end, as they&#8217;re not needed on this new site. Magic!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This site replaces my original Typepad blog which was at alwaysthecritic.typepad.com. I will probably disable the Typepad blog entirely in the long run (possibly even the short run) but for now I figured out a way to have the Typepad pages redirect to the relevant articles on this new site. Simply add an HTML widget [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,34],"tags":[],"class_list":["post-1953","post","type-post","status-publish","format-standard","hentry","category-webtech","category-weblogs"],"_links":{"self":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts\/1953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1953"}],"version-history":[{"count":0,"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts\/1953\/revisions"}],"wp:attachment":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}