<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rest api  |  塞翁失馬</title>
	<atom:link href="https://hbirds.mydns.jp/tag/rest-api/feed/" rel="self" type="application/rss+xml" />
	<link>https://hbirds.mydns.jp</link>
	<description>禍福は糾える縄の如し</description>
	<lastBuildDate>Sun, 12 Feb 2023 07:33:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://hbirds.mydns.jp/wp-content/uploads/2022/12/cropped-akaza-32x32.png</url>
	<title>rest api  |  塞翁失馬</title>
	<link>https://hbirds.mydns.jp</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>REST APIエラー</title>
		<link>https://hbirds.mydns.jp/rest-api%e3%82%a8%e3%83%a9%e3%83%bc/</link>
		
		<dc:creator><![CDATA[hbirds]]></dc:creator>
		<pubDate>Sun, 12 Feb 2023 07:33:51 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[rest api]]></category>
		<guid isPermaLink="false">https://hbirds.mydns.jp/?p=809</guid>

					<description><![CDATA[パーマリンクをplain以外にセットすると以上のエラーが出て、各ポストのリンクが全部切れてしまう、新規の投稿もできなくなった。 jsonを読めるようにしてなかったのが原因。Nginxの設定ファイルの適切な位置に以下を挿入して解決。]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="541" src="https://hbirds.mydns.jp/wp-content/uploads/2023/02/2b128dc49a29fa2316169c90ec403d5580b6cf81-1024x541.png" alt="" class="wp-image-812" srcset="https://hbirds.mydns.jp/wp-content/uploads/2023/02/2b128dc49a29fa2316169c90ec403d5580b6cf81-1024x541.png 1024w, https://hbirds.mydns.jp/wp-content/uploads/2023/02/2b128dc49a29fa2316169c90ec403d5580b6cf81-300x158.png 300w, https://hbirds.mydns.jp/wp-content/uploads/2023/02/2b128dc49a29fa2316169c90ec403d5580b6cf81-768x406.png 768w, https://hbirds.mydns.jp/wp-content/uploads/2023/02/2b128dc49a29fa2316169c90ec403d5580b6cf81.png 1342w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>パーマリンクをplain以外にセットすると以上のエラーが出て、各ポストのリンクが全部切れてしまう、新規の投稿もできなくなった。</p>



<p>jsonを読めるようにしてなかったのが原因。Nginxの設定ファイルの適切な位置に以下を挿入して解決。</p>



<pre class="wp-block-code terminal"><code>try_files $uri $uri/ /index.php?$args;</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
