{"id":1118,"date":"2003-04-16T16:26:46","date_gmt":"2003-04-17T06:26:46","guid":{"rendered":"http:\/\/michaelhans.com\/eclecticism\/2003\/04\/16\/no-more-404s\/"},"modified":"2019-12-04T16:29:49","modified_gmt":"2019-12-05T00:29:49","slug":"no-more-404s","status":"publish","type":"post","link":"https:\/\/michaelhans.com\/eclecticism\/2003\/04\/16\/no-more-404s\/","title":{"rendered":"No more 404&#039;s"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:14833,&quot;href&quot;:&quot;http:\\\/\\\/nslog.com\\\/archives\\\/2003\\\/02\\\/26\\\/404_search_function_code.php&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20080521162441\\\/http:\\\/\\\/nslog.com\\\/archives\\\/2003\\\/02\\\/26\\\/404_search_function_code.php&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-03-13 04:29:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-06 14:48:05&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-06 14:48:05&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:14834,&quot;href&quot;:&quot;http:\\\/\\\/www.scriptygoddess.com\\\/archives\\\/003734.php&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;https:\\\/\\\/www.scriptygoddess.com\\\/archives\\\/003734.php&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>I just implemented a <em>very<\/em> nice little <a href=\"http:\/\/nslog.com\/archives\/2003\/02\/26\/404_search_function_code.php\" title=\"NSLog(); - 404 search function code\">PHP script<\/a> for my website that ties into my site search function &#8212; the end result being that my site no longer has a &#8220;404 File Not Found&#8221; error page!<\/p>\n<p>In brief: if a visitor puts in a URL address that doesn&#8217;t exist, it gets shunted to my search script. If the script returns multiple hits, that listing is displayed, but if the script only returns one hit, the visitor is automatically forwarded to that page. <em>Very<\/em> slick.<\/p>\n<p>As a bonus, it provides a convenient shortcut to searching my site &#8212; just put in whatever search terms you want after &#8220;http:\/\/www.djwudi.com\/&#8221; and see what you get!<\/p>\n<p>(script via <a href=\"http:\/\/www.scriptygoddess.com\/archives\/003734.php\" title=\"404 search page\">Scriptygoddess<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just implemented a very nice little PHP script for my website that ties into my site search function &mdash; the end result being that my site no longer has a &#8216;404 File Not Found&#8217; error page!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2040],"tags":[25],"class_list":["post-1118","post","type-post","status-publish","format-standard","hentry","category-blog","tag-website"],"_links":{"self":[{"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/posts\/1118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/comments?post=1118"}],"version-history":[{"count":0,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/posts\/1118\/revisions"}],"wp:attachment":[{"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/media?parent=1118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/categories?post=1118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelhans.com\/eclecticism\/wp-json\/wp\/v2\/tags?post=1118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}