I’ve run into this error and i’m sure many of you has. The plugin in question is this one: http://wordpress.org/extend/plugins/google-sitemap-generator/ and it’s a very popular plugin.
When attempting to view my sitemaps, I receive the following error:
After some research I’ve found a solution and it’s worked on our website along with a few of our clients. Now, in reality, there are two solutions yet I recommend the first one as opposed to the second. I’m not too fond of leaving out the WWW in a domain but to each his own!
Always backup any file that you’re going to make any changes to. Make it a habit!
First & Recommended Solution
- Edit your sitemap-core.php file located at /wp-content/plugins/google-sitemap-generator/sitemap-core.php – do so by using a file manager or an FTP client.
- Search for the following Code:
function GetDefaultStyle() {$p = $this->GetPluginPath();if(file_exists($p . "sitemap.xsl")) {$url = $this->GetPluginUrl();//If called over the admin area using HTTPS, the stylesheet would also be https url, even if the blog frontend is not.if(substr(get_bloginfo('url'),0,5) !="https" && substr($url,0,5)=="https") $url="http" . substr($url,5);return $url . 'sitemap.xsl';}return '';} - Replace the above code with the following Code:
function GetDefaultStyle() {$p = $this->GetPluginPath();if(file_exists($p . "sitemap.xsl")) {return '/wp-content/plugins/google-sitemap-generator/sitemap.xsl';}return '';} - Now Rebuild your sitemap.xml file from the control panel and give it a shot. Let us know how you made out in the form below!
2nd Solutions
- ONLY use this option if your website doesn’t use the WWW
- Locate your .htaccess file and add the following to it:
RewriteEngine OnRewriteCond %{HTTP_HOST} ^domain.com [NC]RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301] - Replace the www.domain.com with your actual domain name


hosting solutions and therefore is proud to offer a multitude of
Due to the fact that we have our servers running on IBM Platforms with a redundant infrastructure, our service has never seen an outage during stress testing with a 120% load on our back end infrastructure. We strive to ensure multiple backbones for any unforeseen outages. Trust helpdeskassist to ensure your online website is always up and running.






for
they will find you.