WordPress.org

Ready to get started?Download WordPress

Forums

Google XML Sitemaps
Site Map Does not work with www infront of url (6 posts)

  1. sweetvincent
    Member
    Posted 3 years ago #

    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

  2. webjunk
    Member
    Posted 3 years ago #

    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"

  3. troccola
    Member
    Posted 3 years ago #

    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?

  4. troccola
    Member
    Posted 3 years ago #

    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 //)

  5. webjunk
    Member
    Posted 3 years ago #

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

  6. Arnee
    Member
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic