Sitemap error
-
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
-
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
-
Hi Mike,
How can i set up a rewrite option? does it hurt my rankings ?
Thanks for help!
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Micro Data Schema Error - How to solve?
For my Ecommerce site suddenly following errors occurred while I test my homepage in structured data testing tools - Error - image- A value for the image field is required. Name - A value for the image field is required. On right side of tool it's show me - Warning - address - The address field is recommended. Please provide a value if available. pricerange - The priceRange field is recommended. Please provide a value if available. telephone - The telephone field is recommended. Please provide a value if available. On right side of tool it's show me - Please let me know how to solve this errors and warnings? I have implemented schema via micro data. Thanks!
Technical SEO | | adamjack0 -
Mobile sitemap needed for responsive website?
I've seen some older 2012 posts that discuss, but nothing recent given the new changes to emphasize mobile. For website that are already tested and verified as mobile responsive, is best practice to develop a mobile-specific sitemap and submit that as well? Or will any mobile crawlers spider the regular sitemap?
Technical SEO | | Addion0 -
Redirecting old Sitemaps to a new XML
I've discovered a ton of 404s from Google's WMT crawler looking for mydomain.com/sitemap_archive_MONTH_YEAR. There are tons of these monthly archive xmls. I've used a plugin that for some reason created individual monthly archive xml sitemaps and now I get 404s. Creating rules for each archive seems a bad solution. My current sitemap plugin creates a single clean one mydomain.com/sitemap_index.xml. How can I create a redirect rule in the Redirection WP plugin that will redirect any URL that has the 'sitemap' and 'xml' string in it to my current xml sitemap? I've tried using a wildcard like so: mysite.com/sitemap*.*, mysite.com/sitemap ., mysite.com/sitemap(.), mysite.com/sitemap (.) but none of the wildcard uses got the general redirect to work. Is there a way to make this happen with the WP Redirection plugin? If not, is there a htaccess rule, and what would the code be for it? Im not very fluent with using general redirects in htaccess unfortunately. Thanks!
Technical SEO | | IgorMateski0 -
301 vs 500 Errors for discontinued products
I have a client that has a around 15 "products" (they are pages containing details of the products rather than e-Commerce products) that have been discontinued. The client has suggested 301s but unless the alternative products are replacement products am I correct that we should be using a 500 error?
Technical SEO | | MentorDigital0 -
Should all pagination pages be included in sitemaps
How important is it for a sitemap to include all individual urls for the paginated content. Assuming the rel next and prev tags are set up would it be ok to just have the page 1 in the sitemap ?
Technical SEO | | Saijo.George0 -
Why is 4XX (Client Error) shown for valid pages?
My Crawl Diagnostics Summary says I have 5,141 errors of the 4XX (Client Error) variety. Yet when I view the list of URLs they all resolve to valid pages. Here is an example.
Technical SEO | | jimaycock
http://www.ryderfleetproducts.com/ryder/af/ryder/core/content/product/srm/key/ACO 3018/pn/Wiper-Blade-Winter-18-Each/erm/productDetail.do These pages are all dynamically created from search or browse using a database where we offer 36,000 products. Can someone help me understand why these are errors.0 -
Duplicate Video Onsite - How do you treat this in Sitemap?
How would you handle multiple pages using the same video content? As sometimes it does not make sense to have new videos for every product so you re purpose. Will you still get the effects in search results if the thumbs and video location is duplicated for some product urls?
Technical SEO | | andrewv0 -
Mobile sitemaps - how much value?
Hi, We have a main www website with a standard sitemap. We also have a m. site for mobile content (the mobile site only contains our top pages and doesn't include the entire site). If a mobile client accesses one of our www pages we redirect to the m. page. If we don't have a m. version we keep them on the www site. Since we already have a www sitemap, is there much value in creating a mobile site map? The mobile site (although missing all pages) is pretty robust and contains most content people are looking for. Will the mobile sitemap help for Mobile searches (more so than our standard sitemap)? I'm also planning on rel canonical the m. pages to the www. pages (per other suggestios on SEOMoz) Thanks
Technical SEO | | NicB10