WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Google XML Sitemaps] Site Map Does not work with www infront of url

[Plugin: Google XML Sitemaps] Site Map Does not work with www infront of url

  • sweetvincent

    @sweetvincent

    I have installed the plugin and it seems to work good when i put www infront of url and without www infront of url, it doesnt work.

    How do i fix this please since it is not working without www, i cannot submit it to google since it is doesnt allow…

    working link is http://www.ghanacelebrities.com/sitemap.xml
    not working link ghanacelebrities.com/sitemap.xml

Viewing 5 replies - 1 through 5 (of 5 total)
  • webjunk

    @webjunk

    Your problem with using without the “www” seems to be with how you re redirecting the domain without the “www”. fi that and it will work. But have hundreds of websites who submit their sitemap using “www”

    troccola

    @troccola

    I am experiencing the same problem.

    The Sitemap works fine if I go to http://www.domain,commm/sitemap.xml, but fails if I go to domain.commm/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)
    http://www.domain/wp-content/plugins/google-sitemap-generator/sitemap.xsl

    @webjunk, you said “Fix the redirect” – can you be more specific?

    troccola

    @troccola

    If you prefer

    http:(//)mydomain(dot)com

    your .htaccess must contain:

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

    If you prefer http:(//)www(dot)mydomain(dot)com, your .htaccess must contain:

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

    NOTE: (Replace (dot) by . and (//) by //)

    webjunk

    @webjunk

    @troccola
    Without a link to your site can not tell you anything

    Plugin Contributor Arne Brachhold

    @arnee

    The domain of your blog and the submitted sitemap must be EXACTLY the same. Using one with www and the other one without won’t work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Google XML Sitemaps] Site Map Does not work with www infront of url’ is closed to new replies.