The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Sitemap error

    Sitemap error

    Technical SEO Issues
    4 2 132
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tonyklu
      tonyklu last edited by

      Hi,

      When i search for my blog post in google i get sitemap results, and when i click on it i get an error, here is the screen shot

      http://screencast.com/t/lXOIiTnVZR1

      http://screencast.com/t/MPWkuc4Ocixy

      How can i fix that, it loos like if i just add www. it work just fine.

      Thanks

      1 Reply Last reply Reply Quote 0
      • Mike.Goracke
        Mike.Goracke last edited by

        Hi Tony,

        You could setup a rewrite to always force the use of WWW when a user or crawler accesses your site without the use of WWW.

        Depending on whether you use IIS or Apache, it will be different.

        I did a quick look at your site and it looks like all of your absolute paths are correct with using WWW; however, if you use OPENSITEEXPLORER.org for http://asggutter.com/sitemap.xml you will notice that it has one linking domain: http://iwebchk.com/reports/view/asggutter.com#.UTDhWzA4tqk

        I am guessing that Google is crawling iwebchk.com and is getting the non-WWW version of your sitemap from this website. If you Google the iwebchk.com URL above, you will notice that it has a date of Jan 16, 2013, so it must of cataloged this incorrectly somewhat recently.

        You could also maybe try contacting iwebchk.com and asking if they would correct the sitemap URL on their website - but the rewrite to force WWW would probably be easier.

        Good luck,

        Mike

        tonyklu 1 Reply Last reply Reply Quote 0
        • tonyklu
          tonyklu @Mike.Goracke last edited by

          Hi Mike,

          How can i set up a rewrite option?  does it hurt my rankings ?

          Thanks for help!

          Mike.Goracke 1 Reply Last reply Reply Quote 0
          • Mike.Goracke
            Mike.Goracke @tonyklu last edited by

            It depends on whether you use Apache or IIS to manage your website.

            Here is an example of what you'd use if you have IIS 7:

             <code><system.webserver><rewrite><rules><rule name="Force www" stopprocessing="true"><match url="(.*)"><conditions><add input="{HTTP_HOST}" pattern="^site\.com$"></add></conditions> 
                            <action type="Redirect" url="<a" href="http://www.site.com/{R:1}">http://www.site.com/{R:1} redirectType="Permanent" /></action></match></rule></rules></rewrite></system.webserver></code> 
            

            This shows what you'd use for Apache (at least I think... I use personally use IIS):

            http://stackoverflow.com/questions/4907348/force-www-via-htaccess

            And once you have one of these in place, you will also want to configure your Google Webmaster Tools to specify your preferred domain (Configuration > Settings > Preferred domain > Display URLs as www.YOURSITE.com).

            This is technically a 301 permanent redirect, so if you have any other links on the web that point to the non-www version, they will be redirected to the correct www version - since there is a redirect at play here, it would not pass the full amount of link juice. But like I said in my previous post, it appears that you only have 1 link pointing to the incorrect version. So, you will actually be fixing a broken link by doing this. In theory, your www version will be gaining some of the link juice that the non-www version was previously receiving.

            This is also going to provide your users with a better experience as well... which is nice 🙂

            Make sense?

            Mike

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Sitemaps:
              bridget.randolph
              bridget.randolph
              0
              5
              50

            • Sitemap
              ThompsonPaul
              ThompsonPaul
              0
              4
              90

            • Sitemaps: Good Image And Video Sitemap Generators
              Whittie
              Whittie
              0
              4
              143

            • Sitemap issue - Tons of 404 errors
              JanetJ
              JanetJ
              0
              7
              140

            • Submitting a new sitemap index file. Only one file is getting read. What is the error?
              mm916157
              mm916157
              0
              4
              416

            • Sitemaps
              informatica810
              informatica810
              0
              3
              257

            • How to fix this 404 : Error ( 4XX (Client Error) )
              igor.pinchevskiy
              igor.pinchevskiy
              0
              3
              1.2k

            • Should I worry about errors MozBot finds but is not on my sitemap?
              AlanMosley
              AlanMosley
              0
              3
              466

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy