<?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>Yoast &#8211; King Host Coupon</title>
	<atom:link href="https://kinghostcoupon.com/tag/yoast/feed/" rel="self" type="application/rss+xml" />
	<link>https://kinghostcoupon.com</link>
	<description>Domain Hosting VPS/Servers coupon codes</description>
	<lastBuildDate>Mon, 08 Nov 2021 16:18:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.6</generator>
	<item>
		<title>How to fix XML Sitemap 404 Not Found error in Yoast plugin?</title>
		<link>https://kinghostcoupon.com/fix-xml-sitemap-404-not-found-error-in-yoast-plugin/</link>
					<comments>https://kinghostcoupon.com/fix-xml-sitemap-404-not-found-error-in-yoast-plugin/#respond</comments>
		
		<dc:creator><![CDATA[Anh]]></dc:creator>
		<pubDate>Mon, 08 Nov 2021 16:11:21 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[XML Sitemap]]></category>
		<category><![CDATA[Yoast]]></category>
		<guid isPermaLink="false">https://kinghostcoupon.com/?p=410</guid>

					<description><![CDATA[<p>After successfully installing WordPress, you will need to install some plugins, such as Yoast SEO. Do you use Yoast’s plug-in Wordpess SEO (also known as Yoast SEO or Wordpess SEO)... </p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/fix-xml-sitemap-404-not-found-error-in-yoast-plugin/">How to fix XML Sitemap 404 Not Found error in Yoast plugin?</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>After <a href="https://kinghostcoupon.com/how-to-install-wordpress/">successfully installing WordPress</a>, you will need to install some plugins, such as Yoast SEO.</p>
<p>Do you use Yoast’s plug-in Wordpess SEO (also known as Yoast SEO or Wordpess SEO) to optimize Wordpess SEO and use it to create a sitemap for your website/blog?</p>
<p>And when submitting the sitemap to the Google Search Console, a 404 Not Found error message will appear. And you try to check your sitemap under the path domain.com/sitemap.xml or domain.com/sitemap_index.xml, it returns a 404 Not Found error (error not found).</p>
<p>So is this an error caused by a Yoast SEO plugin or hosting/server error or you misconfigured Yoast SEO?</p>
<p>Let us find out the reasons and how to fix the 404 error when using WordPress SEO to create a sitemap in the following content.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter wp-image-413 " src="https://kinghostcoupon.com/wp-content/uploads/2021/11/fix-xml-sitemap-error-404-yoast-seo.jpg" alt="Fix XML Sitemap error 404 Yoast Seo" width="596" height="397" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/fix-xml-sitemap-error-404-yoast-seo.jpg 768w, https://kinghostcoupon.com/wp-content/uploads/2021/11/fix-xml-sitemap-error-404-yoast-seo-300x200.jpg 300w" sizes="(max-width: 596px) 100vw, 596px" /></p>
<h2>Fix 404 error for sitemap created by Yoast SEO</h2>
<p>First of all, We would like to confirm that the 404 error of this sitemap is not caused by the Yoast SEO plugin. If you have time can read the answer page in English, this is also confirmed by the author of the plugin. So what is the cause of the error?</p>
<p>Before finding out why you must ensure that the sitemap creation feature in the Wordpess SEO plugin is enabled. If it is not enabled, 404 errors are natural. If you have opened it but still have errors, please continue reading below</p>
<h3>1. Error due to static path structure (Permalinks) changes.</h3>
<p>You won&#8217;t know if it&#8217;s the static path or not, but you can try the following. If it can be fixed, it&#8217;s because the path is static, if not, it&#8217;s okay.</p>
<p>You access the Admin page -&gt; Settings  -&gt; Permalinks then click Save without having to change anything.</p>
<p><img decoding="async" class="aligncenter wp-image-411 " src="https://kinghostcoupon.com/wp-content/uploads/2021/11/save-permalinks.jpg" alt="Save permalinks" width="658" height="345" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/save-permalinks.jpg 802w, https://kinghostcoupon.com/wp-content/uploads/2021/11/save-permalinks-300x157.jpg 300w, https://kinghostcoupon.com/wp-content/uploads/2021/11/save-permalinks-768x402.jpg 768w" sizes="(max-width: 658px) 100vw, 658px" /></p>
<h3><span id="2_Sitemap_khong_co_du_lieu">2. Sitemap has no data</span></h3>
<p>Log in to the WordPress Website, select Edit Post or Page.</p>
<p>Expand the <strong>Advanced</strong> section and select <strong>&#8216;Allow search engines to show this Post in search results?&#8217; </strong>to <strong>“Yes”</strong> for the Post or Page being edited.</p>
<p><img decoding="async" class="aligncenter wp-image-412 size-full" src="https://kinghostcoupon.com/wp-content/uploads/2021/11/allow-search-engines-to-show.png" alt="Allow search engines to show" width="601" height="422" srcset="https://kinghostcoupon.com/wp-content/uploads/2021/11/allow-search-engines-to-show.png 601w, https://kinghostcoupon.com/wp-content/uploads/2021/11/allow-search-engines-to-show-300x211.png 300w" sizes="(max-width: 601px) 100vw, 601px" /></p>
<h3><span id="3_Loi_do_rewrite_chua_duoc_thiet_lap_tren_Web_serverHosting">3. Error because rewrite has not been set up on Webserver</span></h3>
<p>If your 404 error still exists, you can check the configuration file of the webserver to see if a rewrite is added. If a rewrite is not added, please follow the steps below to use Apache and Nginx web servers.</p>
<h4><em><span id="Apache">Apache</span></em></h4>
<p>If you use Apache, just add the following code to the .htaccess file and save it.</p>
<p><strong><em><span style="text-decoration: underline;">Note:</span></em></strong> back up the .htaccess file in case something goes wrong.</p>
<p><code><span style="color: #ff0000;"><em># Yoast SEO - XML Sitemap Rewrite Fix</em></span></code><br />
<code><span style="color: #ff0000;"><em>RewriteEngine On</em></span></code><br />
<code><span style="color: #ff0000;"><em>RewriteBase /</em></span></code><br />
<code><span style="color: #ff0000;"><em>RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]</em></span></code><br />
<code><span style="color: #ff0000;"><em>RewriteRule ^locations.kml$ /index.php?sitemap=wpseo_local_kml [L]</em></span></code><br />
<code><span style="color: #ff0000;"><em>RewriteRule ^geo_sitemap.xml$ /index.php?sitemap=geo [L]</em></span></code><br />
<code><span style="color: #ff0000;"><em>RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&amp;sitemap_n=$2 [L]</em></span></code><br />
<code><span style="color: #ff0000;"><em>RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?yoast-sitemap-xsl=$1 [L]</em></span></code><br />
<code><span style="color: #ff0000;"><em># END Yoast SEO - XML Sitemap Rewrite Fix</em></span></code></p>
<h4><em><span id="Nginx">Nginx</span></em></h4>
<p>If you are using Nginx and the sitemap has a 404 error, then open the domain configuration file in Nginx at the path /home/domain.com/public_html/nginx.conf and add the following code:</p>
<p><code><em><span style="color: #ff0000;">rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;</span></em></code><br />
<code><em><span style="color: #ff0000;">rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&amp;sitemap_n=$2 last;</span></em></code><br />
<code><em><span style="color: #ff0000;">location ~ ([^/]*)sitemap(.*).x(m|s)l$ { </span></em></code><br />
<code><em><span style="color: #ff0000;">rewrite ^/sitemap.xml$ /sitemap_index.xml permanent;</span></em></code><br />
<code><em><span style="color: #ff0000;">rewrite ^/([a-z]+)?-?sitemap.xsl$ /index.php?yoast-sitemap-xsl=$1 last; </span></em></code><br />
<code><em><span style="color: #ff0000;">rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last; </span></em></code><br />
<code><em><span style="color: #ff0000;">rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&amp;sitemap_n=$2 last;</span></em></code><br />
<code><em><span style="color: #ff0000;">rewrite ^/news-sitemap.xml$ /index.php?sitemap=wpseo_news last; </span></em></code><br />
<code><em><span style="color: #ff0000;">rewrite ^/locations.kml$ /index.php?sitemap=wpseo_local_kml last;</span></em></code><br />
<code><em><span style="color: #ff0000;">rewrite ^/geo-sitemap.xml$ /index.php?sitemap=wpseo_local last; </span></em></code><br />
<code><em><span style="color: #ff0000;">rewrite ^/video-sitemap.xsl$ /index.php?yoast-sitemap-xsl=video last; </span></em></code><br />
<code><em><span style="color: #ff0000;">}</span></em></code></p>
<p>Hope the above description can help you solve the error you are facing. Use the comment box below to tell us what you think about this article<img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a rel="nofollow" href="https://kinghostcoupon.com/fix-xml-sitemap-404-not-found-error-in-yoast-plugin/">How to fix XML Sitemap 404 Not Found error in Yoast plugin?</a> appeared first on <a rel="nofollow" href="https://kinghostcoupon.com">King Host Coupon</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://kinghostcoupon.com/fix-xml-sitemap-404-not-found-error-in-yoast-plugin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
