<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=410403&amp;view=findpost&amp;p=3708718</guid>
        <pubDate>Mon, 27 Feb 2017 19:31:22 +0000</pubDate>
        <title>Почему не отдается ошибка 404?</title>
        <link>https://forum.sources.ru/index.php?showtopic=410403&amp;view=findpost&amp;p=3708718</link>
        <description><![CDATA[southern: Нашлось объяснение: <a class='tag-url' href='https://developer.wordpress.org/reference/functions/redirect_guess_404_permalink/' target='_blank'>https://developer.wordpress.org/reference/f..._404_permalink/</a>]]></description>
        <author>southern</author>
        <category>HTTP сервера</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=410403&amp;view=findpost&amp;p=3708677</guid>
        <pubDate>Mon, 27 Feb 2017 14:16:16 +0000</pubDate>
        <title>Почему не отдается ошибка 404?</title>
        <link>https://forum.sources.ru/index.php?showtopic=410403&amp;view=findpost&amp;p=3708677</link>
        <description><![CDATA[southern: На официальном <a class='tag-url' href='https://wordpress.org/plugins/browse/beta/' target='_blank'>https://wordpress.org/plugins/browse/beta/</a> (взято первое попавшееся) при обращении к <a class='tag-url' href='https://wordpress.org/plugins/browse/bet' target='_blank'>https://wordpress.org/plugins/browse/bet</a> уводит на <a class='tag-url' href='https://wordpress.org/plugins/' target='_blank'>https://wordpress.org/plugins/</a><br>
 8-)]]></description>
        <author>southern</author>
        <category>HTTP сервера</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=410403&amp;view=findpost&amp;p=3708392</guid>
        <pubDate>Fri, 24 Feb 2017 05:57:14 +0000</pubDate>
        <title>Почему не отдается ошибка 404?</title>
        <link>https://forum.sources.ru/index.php?showtopic=410403&amp;view=findpost&amp;p=3708392</link>
        <description><![CDATA[simsergey: Стоит почитать мануал по RewriteEngine.<br>
Запросы по условию перенаправляются на index.php, т.е. если запрошен не файл и не директория, то такие запросы направлять на index.php.<br>
В результате запрос<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">https://site.ru/pro</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>будет преобразован апачем в <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">https://site.ru/index.php/pro</div></ol></div></div></div></div>, где index.php получит параметр pro, по какой-то своей эвристике сформирует ответ, указав 301 и новый адрес. (301 перемещено навсегда).<br>
<br>
Чтобы он так не делал, нужно смотреть настройки вордпресса.]]></description>
        <author>simsergey</author>
        <category>HTTP сервера</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=410403&amp;view=findpost&amp;p=3708373</guid>
        <pubDate>Thu, 23 Feb 2017 19:53:07 +0000</pubDate>
        <title>Почему не отдается ошибка 404?</title>
        <link>https://forum.sources.ru/index.php?showtopic=410403&amp;view=findpost&amp;p=3708373</link>
        <description><![CDATA[southern: Ситуация: сайт на вордпрессе. Специально обращаюсь к несуществующему ресурсу <a class='tag-url' href='https://site.ru/proekty/proekty-2/proek' target='_blank'>https://site.ru/proekty/proekty-2/proek</a> или <a class='tag-url' href='https://site.ru/proekty/pro/' target='_blank'>https://site.ru/proekty/pro/</a>, но сайт отдает код 301 и открывается <a class='tag-url' href='https://site.ru/proekty/' target='_blank'>https://site.ru/proekty/</a><br>
<br>
<a class='tag-url' href='https://site.ru/n' target='_blank'>https://site.ru/n</a> редиректится на <a class='tag-url' href='https://site.ru/news/' target='_blank'>https://site.ru/news/</a>.<br>
<br>
Каждый раз проверяю в приватном режиме браузера, с другой машины, с телефона. Результат везде одинаковый. В .htaccess вот что:<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line"># BEGIN WordPress</div><div class="code_line">&#60;IfModule mod_rewrite.c&#62;</div><div class="code_line">RewriteEngine On</div><div class="code_line">RewriteBase /</div><div class="code_line">RewriteRule ^index\.php$ - [L]</div><div class="code_line">RewriteCond %{REQUEST_FILENAME} !-f</div><div class="code_line">RewriteCond %{REQUEST_FILENAME} !-d</div><div class="code_line">RewriteRule . /index.php [L]</div><div class="code_line">&#60;/IfModule&#62;</div><div class="code_line">&nbsp;</div><div class="code_line"># END WordPress</div><div class="code_line">AddDefaultCharset utf-8</div><div class="code_line">AddType &#39;text/html; charset=utf-8&#39; .html .htm .shtml</div></ol></div></div></div></div>]]></description>
        <author>southern</author>
        <category>HTTP сервера</category>
      </item>
	
      </channel>
      </rss>
	