Home » Wordpress » Google xml sitemap stylesheet loading error

Google xml sitemap stylesheet loading error

If you’re using google xml sitemap wordpress plugin(Google sitemap generator,google-xml-sitemaps-v3-for-qtranslate,..etc), you will notice an error message when you’re accessing your sitemap.This error message like this.

Google XML Sitemap Stylesheet loading Error


The main reason is this plugin can’t access directly sitemap.xsl or it not exist in the directory.The sitemap.xsl file is design your sitemap.xml file.It not essential to sitemap.xml file.
Another reason is your security plugins may not directly access this sitemap.xsl file for security reasons.
You can follow these any mothod to slove this problem.

[stextbox id=”info”]You definitely need an XML Sitemap. In my personal experience with SEO, Google, and small business websites, XML Sitemaps have been an invaluable tool. Most people don’t know what Sitemaps are and often pay others to do SEO work – this is an advantage for you over your competition. One of my SEO “secrets” is to install the XML Google Sitemaps Plugin in my websites. I usually see results within a few days from using that Sitemap plugins![/stextbox]

Method-1

1-Go to the /wp-content/plugins/google-sitemap-generator folder.
2-Open the sitemap-core.php file.
3-Find the following function and full comment or remove it.

4-Add this function after above.

5-Rebuild your sitemap manually using plugin settings.

Method-2

This is the other reason.Your site using www or without.Use only one.You can do this by editing .htaccess file.
Add the following script and save the file.
If your site is using www, then add this script and save the .htaccess file.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

If your site is using without www, add this script and save the file.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

Method-3

1-Go to the root directory and open your sitemap.xml file.
2-Find the following script there.(normally top).This script is loading styles/css to your xml file.

3-Change it as follows.(remove the http://domain.com)

4-Save the file.That’s only.
5-Or you can completely remove the above script.

Tags

Similar posts