WordPress.org

Forums

WordPress SEO by Yoast
Still no XSLT stylesheet loading (12 posts)

  1. tizz
    Member
    Posted 1 year ago #

    I know it's not a problem for robots to see the maps, but I want to point out that also after last 1.4.15 release sitemaps have that missing XSLT stylesheet and they aren't visible to human eye.

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

  2. astrasuite
    Member
    Posted 1 year ago #

    Do you have xml-sitemap.xsl in your wordpress home directory ?

    I went to WordPress css directory, copied xml-sitemap.xsl to main-sitemap.xsl in the wordpress home directory.

    Refresh browser, voila, now it can be seen :

    http://www.astrasuite.com/astrablog/sitemap_index.xml

  3. tizz
    Member
    Posted 1 year ago #

    Your sitemap isn't visible, and xml-sitemap.xsl shouldn't be in that directory.

  4. galders
    Member
    Posted 1 year ago #

    I have exactly the same problem, and could'nt find a solution. What I have realized is that for Webmaster Tools the XML files are perfectly formed, and for Chrome you can see the XML without any problem. The problem comes when you want to see the file in Firefox:

    Error de lectura XML: mal formado
    Ubicación: https://www.XXXXXXXXXXXX.com/main-sitemap.xsl
    Número de línea 187, columna 34: b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs;
    ------------------------------------------------------^

  5. galders
    Member
    Posted 1 year ago #

    Thanks in advance!

  6. tizz
    Member
    Posted 1 year ago #

    As I said, it's not a real problem, but I wanted to point out this because changelog says:

    1.4.15
    Bugfixes
    Fix the white XML sitemap errors caused by non-working XSL.

  7. galders
    Member
    Posted 1 year ago #

    Yes, I know that is not a real problem, because for Google Webmaster Tools the XML files are correct, but I would like to fix the Firefox visualization also.

    Thanks again tizz, I will much appreciate if you could post any solution or tip about this issue. I will do also.

  8. astrasuite
    Member
    Posted 1 year ago #

    "Your sitemap isn't visible, and xml-sitemap.xsl shouldn't be in that directory."

    @tizz, ok, I see what you mean. I can see it in chrome, but not in firefox.

  9. Rajesh Namase
    Member
    Posted 1 year ago #

    Many people facing same issue, try adding following code in .htaccess

    # WordPress SEO - XML Sitemap Rewrite Fix
    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]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    # END WordPress SEO - XML Sitemap Rewrite Fix
  10. galders
    Member
    Posted 1 year ago #

    Thank you but is not working for me.

    Thanks anyway :-(

  11. VenturaVan
    Member
    Posted 1 year ago #

  12. kruglikov
    Member
    Posted 11 months ago #

    I fixed this issue on 1.5.3.3 by adding next redirect to nginx config:
    rewrite ^/main-sitemap\.xsl$ /index.php?xsl=main last;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic