WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
404 Error on Woocommerce Category's with Sitemap enabled (2 posts)

  1. jwt2030
    Member
    Posted 11 months ago #

    Hello, i am getting 404 errors on my woo category pages when the sitemap function is enabled. I tried excluding all types of things from the sitemap, i added the .htacces code below at the top of my file. I unchecked just about everything in yoast and diabled most my plugins including my cache. This is happening on 2 of my largest sites. Please help?

    # WordPress SEO - XML Sitemap Rewrite Fix
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index\.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    </IfModule>
    # END WordPress SEO - XML Sitemap Rewrite Fix

    http://wordpress.org/plugins/wordpress-seo/

  2. srr26
    Member
    Posted 23 hours ago #

    I'm getting this same error on my website: http://sweatshirtstation.com

    The WordPress SEO by Yoast plugin creates an sitemap index page (sitemap_index.xml), which references other sitemaps that are automatically created unless the plugin is configured not to include them. WooCommerce product categories are included in the configuration options.

    I have configured the Yoast sitemap tool configured to create the following sitemaps, but some of them (as noted below) return 404 errors.

    http://sweatshirtstation.com/page-sitemap.xml - working
    http://sweatshirtstation.com/product-sitemap.xml - working
    http://sweatshirtstation.com/category-sitemap.xml - 404 Error
    http://sweatshirtstation.com/post_tag-sitemap.xml - 404 Error
    http://sweatshirtstation.com/product_cat-sitemap.xml - working
    http://sweatshirtstation.com/product_tag-sitemap.xml - 404 Error

    It seems somewhat random that some of these sitemaps work just fine, while others don't. I can't see an obvious differentiator in how they're created.

    If anyone could give a hint as to why there would be sitemap errors with the XML files noted above, I'd appreciate it. I'll keep doing some testing to see if I can come up with a solution also.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.