1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Google XML Sitemap Generator plug-in broken

Discussion in 'Blogging' started by bigleftie, Sep 30, 2010.

  1. bigleftie

    bigleftie Junior Member

    Joined:
    Jun 15, 2010
    Messages:
    135
    Likes Received:
    34
    Occupation:
    Senior Software Engineer
    Location:
    NJ, USA
    I am experiencing the following problem with Google XML Sitemap Generator (v3.4.2). I know of at least one other person who is seeing similar results.

    The Sitemap works fine if I retrieve it from wwwdomaindotcom/sitemap.xml, but fails if I try to get it from domaindotcom/sitemap.xml

    Google Chrome fails silently.

    IE 8.0.6001 fails with the following error: Cannot view XML input using XSL style sheet.

    Firefox (v 3.6.10) fails with the following error: Error loading stylesheet: An unknown error has occurred (805303f4) wwwdomaindotcom/wp-content/plugins/google-sitemap-generator/sitemap.xsl

    I'm trying to figure out what is wrong (and maybe even fix the problem). More data would help.

    If you use this plug-in and wanna help

    1) Does your WP installation redirect to your domain with or without the WWW?

    2) Does your sitemap.xml work with the WWW?

    3) Does your sitemap.xml work without the WWW?

    Of course, if you know what's wrong - that would be greatly appreciated as well :)
     
  2. Axelz

    Axelz Registered Member

    Joined:
    Feb 19, 2009
    Messages:
    67
    Likes Received:
    31
    I've found that this plugin acts screwy when I use it on a multi-site enabled WP installation.

    Is this for a normal WP installation or is it on a WP multi-site enabled install?
     
  3. RedMango

    RedMango Power Member

    Joined:
    Jul 15, 2010
    Messages:
    518
    Likes Received:
    201
    Location:
    UK
    I've got a problem with XML sitemap too. It has worked but on my admin panel page, nothing shows up. Yet SEO Quake says a sitemap has been submitted (so I'm not too bothered). I deactivated/uninstalled-reinstalled and same thing.

    I'd like to know a pro's thinking on this too.
     
  4. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    works for me . using Version 3.2.4 on wordpress 3.01

    using htaccess to rewrite to nonwww
    chrome sees the sitemap fine with or without www
     
  5. bigleftie

    bigleftie Junior Member

    Joined:
    Jun 15, 2010
    Messages:
    135
    Likes Received:
    34
    Occupation:
    Senior Software Engineer
    Location:
    NJ, USA
    Ah, maybe we are just missing something or forwarding wrong.

    Would it be possible to cut-n-paste your htaccess contents so we can compare?
     
  6. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    sure. cannot post links so pmd you my rule. feel free to put it on here
     
    • Thanks Thanks x 1
  7. topsytips

    topsytips Regular Member

    Joined:
    Aug 11, 2008
    Messages:
    334
    Likes Received:
    234
    Occupation:
    Self Employed
    Location:
    UK
    For me it works the other way around i.e. without the 'www.'

    However, that's how I like to promote my url and in the WP Panel General settings, I have provided both the WP Address and the Site Address as being without the 'www'

    I only noticed this anomaly because I was having a few problems uploading a site map to Google's Web Master Tools when I entered the url with the 'www.' Without it, the site map uploaded fine.

    My site does automatically re-direct for posts if 'www' is entered, so am not sure why it's not doing so for the site map.
     
  8. Ann Onime

    Ann Onime Registered Member

    Joined:
    May 19, 2010
    Messages:
    69
    Likes Received:
    23
    If you prefer
    Code:
    http:(//)mydomain(dot)com
    your .htaccess must contains :
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www(dot)mydomain\(dot)com [NC]
    RewriteRule (.*) http:(//)mydomain(dot)com/$1 [R=301,L]
    If you prefer
    Code:
    http:(//)www(dot)mydomain(dot)com
    your .htaccess must contains :
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^mydomain\(dot)com [NC]
    RewriteRule (.*) http:(//)www(dot)mydomain(dot)com/$1 [R=301,L]
    (Replace (dot) by . and (//) by //)
     
    • Thanks Thanks x 1
  9. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    I think its because WP only uses permalinks to redirect its own directories,pages,posts etc. anything like a sitemap or your robots txt will not get redirected by WP as it was not created by WP. so you need to use your .htaccess.
     
  10. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    Ann what is the [NC] flag?
     
  11. Ann Onime

    Ann Onime Registered Member

    Joined:
    May 19, 2010
    Messages:
    69
    Likes Received:
    23
    It permits to ignore the case (lower/upper).
    Code:
    Mydomains(dot)com == mYdomains(dot)com == mydomains(dot)com etc...
     
    • Thanks Thanks x 1
  12. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    cool . I'm missing that. will add it thanks a lot