<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged 410</title>
<link>https://www.question2answer.org/qa/tag/410</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to change 404 Not Found response to 410 Gone?</title>
<link>https://www.question2answer.org/qa/116828/how-to-change-404-not-found-response-to-410-gone</link>
<description>

&lt;p data-start=&quot;254&quot; data-end=&quot;266&quot;&gt;Hi everyone,&lt;/p&gt;

&lt;p data-start=&quot;268&quot; data-end=&quot;395&quot;&gt;I'm trying to change the default &lt;code data-start=&quot;301&quot; data-end=&quot;316&quot;&gt;404 Not Found&lt;/code&gt; response in Question2Answer to &lt;code data-start=&quot;348&quot; data-end=&quot;358&quot;&gt;410 Gone&lt;/code&gt;, for some permanently removed pages.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p data-start=&quot;397&quot; data-end=&quot;423&quot;&gt;I modified this core file:
&lt;br&gt;qa-include/pages/qa-page-not-found.php
&lt;br&gt;
&lt;br&gt;I replaced this line:
&lt;br&gt;header('HTTP/1.0 404 Not Found');
&lt;br&gt;
&lt;br&gt;with:
&lt;br&gt;header($_SERVER['SERVER_PROTOCOL'] . ' 410 Gone');
&lt;br&gt;
&lt;br&gt;However, when I test the page in the browser, I get a &lt;code data-start=&quot;730&quot; data-end=&quot;738&quot;&gt;200 OK&lt;/code&gt; response instead 410 Gone.
&lt;br&gt;
&lt;br&gt;How can I properly make Q2A respond with a 410 Gone status code instead 404 Not Found?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/116828/how-to-change-404-not-found-response-to-410-gone</guid>
<pubDate>Sun, 13 Apr 2025 20:15:44 +0000</pubDate>
</item>
</channel>
</rss>