<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>IW. Can I replace undefined index response with a 404 error?</title>
        <link>https://interactivetools.com/forum/forum-posts.php?IW_-Can-I-replace-undefined-index-response-with-a-404-error-73667</link>
        <description></description>
        <pubDate>Tue, 14 Apr 2026 08:07:27 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;IW_-Can-I-replace-undefined-index-response-with-a-404-error-73667" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [Jeffncou] IW. Can I replace undefined index response with a 404 error?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2216992#post2216992</link>
          <description><![CDATA[No problem.  Glad to hear everything is working now.<br />]]></description>
          <pubDate>Mon, 16 Jul 2012 12:48:41 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2216992#post2216992</guid>
        </item>
                <item>
          <title>Re: [Jason] IW. Can I replace undefined index response with a 404 error?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2216982#post2216982</link>
          <description><![CDATA[Hi Jason<br /><br />The block of code you posted wasn't in my website_init.php. Maybe I have a earlier version of the addon or maybe I removed it by accident. Either way adding this code makes everything work. Thanks for your help.<br />]]></description>
          <pubDate>Fri, 13 Jul 2012 13:47:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2216982#post2216982</guid>
        </item>
                <item>
          <title>Re: [Jeffncou] IW. Can I replace undefined index response with a 404 error?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2216980#post2216980</link>
          <description><![CDATA[Hi,<br /><br />I took a look through the Instant Website code, and in webiste_inti.php there is this block:<br /><br /><code>// show error message if no matching page is found<br />if (!$page) {<br />  header(&quot;HTTP/1.0 404 Not Found&quot;);<br />  print &quot;&lt;h1&gt;404 Not Found&lt;/h1&gt;&quot;;<br />  exit;<br />}</code><br /><br />This should give a 404 error when a page has not be retrieved.  Could you give an example link to a page where you get the &quot;Unidentified Index&quot; error?<br /><br />Also, so can change the message in the code at this point, or put in a redirect if you like.<br /><br />Hope this helps<br />]]></description>
          <pubDate>Fri, 13 Jul 2012 12:17:58 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2216980#post2216980</guid>
        </item>
                <item>
          <title>IW. Can I replace undefined index response with a 404 error?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2216966#post2216966</link>
          <description><![CDATA[I am using the Instant Website plugin<br /><br />After a page has been removed and revisited it displays the php error 'Notice: Undefined index: name in...' message.<br /><br />Instead of displaying the php error I would like to either:<br /><br />Direct to a custom 404<br /><br />or, even better<br /><br />Replace the php error with a more friendly descriptive message such as 'this page has been removed'<br /><br />Is this possible? Any help appreciated<br /><br />Thanks<br />]]></description>
          <pubDate>Fri, 13 Jul 2012 02:35:18 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2216966#post2216966</guid>
        </item>
              </channel>
    </rss>
  