{"id":399,"date":"2004-02-07T20:32:05","date_gmt":"2004-02-08T03:32:05","guid":{"rendered":"\/?p=399"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T06:00:00","slug":"small-request-for-technical-assistance","status":"publish","type":"post","link":"https:\/\/timesandseasons.org\/index.php\/2004\/02\/small-request-for-technical-assistance\/","title":{"rendered":"Small request for technical assistance"},"content":{"rendered":"<p>Since the move to the new server, most things have gone reasonably well.  One little thing is still bugging me; I&#8217;ve tried a few ways to fix it, and have been unsuccessful.  I&#8217;m wondering if any of our readers have the knowledge to help (required knowledge will be a little bit of understanding of Java, PHP and\/or CGI).<\/p>\n<p>UPDATE:  Got it!  Thanks to <a href=\"http:\/\/www.gnoyle.com\">Quinn Warnick <\/a>, the fiction editor for Irreantum, the magazine of the <a href=\"http:\/\/www.aml-online.org\">Association of Mormon Letters<\/a>, for the tip.<br \/>\n<!--more--><br \/>\nThe problem has been fixed.  <\/p>\n<p>The original extended entry read:<\/p>\n<p>When I reinstalled movable type, I didn&#8217;t install it in the cgi-bin, where it had been previously installed.  (I read that that can cause problems).  So it&#8217;s in its own directory now.<\/p>\n<p>The problem is that the location of mt-comments.cgi has changed.  <\/p>\n<p>Formerly, to get to comments on thread 160, the address was:  <\/p>\n<p>http:\/\/timesandseasons.org\/cgi-bin\/mt-comments.cgi?entry_id=160<\/p>\n<p>It is now:<\/p>\n<p>http:\/\/timesandseasons.org\/mt\/mt-comments.cgi?entry_id=160<\/p>\n<p>Everything works fine from the page.  However, visitors who arrive via search engine are being directed to the old comment links, which are no longer valid.<\/p>\n<p>I&#8217;m relatively sure that it would be possible to code a CGI script in java that would take a look at the web address input, chop off the last 3 digits (i.e. the post number), and redirect to a correct address for that post number.  But I don&#8217;t know how such a script would be coded.  <\/p>\n<p>(By the way, I&#8217;ve tried setting a redirect on http:\/\/timesandseasons.org\/cgi-bin\/mt-comments.cgi .  That didn&#8217;t work.  Apparently, because the query wasn&#8217;t just for mt-comments.cgi but also had the entry id in the string.  And I really, really don&#8217;t want to set up 200 redirects, one for each entry id.)<\/p>\n<p>If anyone out there knows how this would be done, I would welcome advice.  Note that (1) this isn&#8217;t really urgent, and (2) I may eventually figure it out on my own.  I don&#8217;t expect anyone to spend any substantial time learning java or anything like that &#8212; if you don&#8217;t know how to do this, don&#8217;t worry, I&#8217;ll eventually figure it out.  The problem looks pretty simple and I suspect that anyone with much knowledge of java could hammer out the solution in a 30-second e-mail.<\/p>\n<p>By the way, speaking of e-mail, I still have to reconfigure T &#038; S e-mail, so it&#8217;s not working at the moment.  Please send any solutions to this address (after removing the anti-spam guard):<\/p>\n<p>kwen**NOSPAM**ger@crav**NOSPAM**ath.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the move to the new server, most things have gone reasonably well. One little thing is still bugging me; I&#8217;ve tried a few ways to fix it, and have been unsuccessful. I&#8217;m wondering if any of our readers have the knowledge to help (required knowledge will be a little bit of understanding of Java, PHP and\/or CGI). UPDATE: Got it! Thanks to Quinn Warnick , the fiction editor for Irreantum, the magazine of the Association of Mormon Letters, for the tip.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-administrative"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/timesandseasons.org\/index.php\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/timesandseasons.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/timesandseasons.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/timesandseasons.org\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/timesandseasons.org\/index.php\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":0,"href":"https:\/\/timesandseasons.org\/index.php\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"wp:attachment":[{"href":"https:\/\/timesandseasons.org\/index.php\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/timesandseasons.org\/index.php\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/timesandseasons.org\/index.php\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}