Welcome to WebmasterWorld Guest from 100.25.214.89

Forum Moderators: goodroi

Message Too Old, No Replies

Google sitemap errors

Google sitemap errors

     
4:42 am on Aug 5, 2015 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:Feb 10, 2005
posts: 497
votes: 0


What to do when the site map is is utterly clean. No redirects at all, all www according to preferred domain set to www and still receiving these odd warnings ...

When we tested a sample of URLs from your Sitemap, we found that some URLs redirect to other locations. We recommend that your Sitemap contain URLs that point to the final destination (the redirect target) instead of redirecting to another URL.
5:27 am on Aug 5, 2015 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4299
votes: 290


If you can view your site with and without the "www" prefix google can too. Check that your preferred form (www or non www) is the only one accessible and that the rewrite is a 301. If the method used is in .htaccess, be sure it specifies 301 because otherwise the default is a 302 (temporary) rewrite.
1:33 pm on Aug 8, 2015 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:Feb 10, 2005
posts: 497
votes: 0


Thanks not2easy! Preferred domain is set to www at .htaccess says Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^srilanka1.net [nc]
rewriterule ^(.*)$ [srilanka1.net...] [r=301,nc]

doesn't seem to help,mate ..
2:36 pm on Aug 8, 2015 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4299
votes: 290


Your rule rewrites all requests, (with and without www). In the RewriteCond part, you should escape the '.' with \. (as in example\.net). The [NC] flag adds more work for the server so unless you have links out there in caps, it is more efficient to leave it off. I did not mention the lower case used in the rule. Try to visit one of your website's pages without www and see if it gets changed to 'www' if you want to test whether it works or not.
Try it this way - and next time, please use "example.com" so a mod won't need to come in and make it readable. ;)
RewriteEngine on
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
3:08 pm on Aug 8, 2015 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:Feb 10, 2005
posts: 497
votes: 0


Many thanks not2easy! just tested and it seems to work well. Hope, Google will like this too:-) Have a great day!
9:30 am on Sept 22, 2015 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:Feb 10, 2005
posts: 497
votes: 0


Sorry for bugging Not2Easy, but once again Google has started to complain about redirects, thought the url doesn't have any.

RewriteEngine on
RewriteCond %{HTTP_HOST} !^(www\.domain\.com)?$
RewriteRule (.*) [domain.com...] [R=301,L]

Any idea, what could be done ?
4:06 pm on Sept 22, 2015 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4299
votes: 290


If you have submitted a new sitemap after the 301 rewrite, and tested the URLs in your sitemap, and they are all shown in the proper (with www in your case) format, then I would suggest to use the GSC (old GWT) tools to "Fetch as Google". It may show you something that is not obvious. If it resolves just fine, I would click the "Submit to Index" button. If it is not resolving correctly you can try checking the headers to see the server responses yourself. It can help you find overlooked menu links or internal links. - or other problems.

If you are not familiar with checking headers, it is a process of viewing the server requests and responses during the loading of a page. It can be quite a large file to look through if there are a lot of scripts, images and other resources called during the page load. In each case you want to see a simple '200' response that means the resource was found and fetched. If you are seeing '302' responses that irritates google. There are tools such as browser extensions you can use and there is a HTTP Response Headers tool available here in the links at the bottom of the page, listed under Webmaster Tools.
6:15 pm on Sept 22, 2015 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:Feb 10, 2005
posts: 497
votes: 0


Many thanks for your advise. Many sitemap updates have been submitted since then.

Did a the header check and a clean 200 came up. Used the too here and another one. Also GWT fetch did not show any issues.

Strange :-)
6:26 pm on Sept 22, 2015 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:Feb 10, 2005
posts: 497
votes: 0


Many thanks for your advise!

Header tests were clean, 200

Google fetch could load everything except this here blocked by robots text ...

[pagead2.googlesyndication.com...]
[oauth.googleusercontent.com...]
7:09 pm on Sept 22, 2015 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4299
votes: 290


Google sometimes seems to pull old sitemaps out of their archives and that may be what is causing the "redirect" issues. If that is the case you may notice 404s for pages you deleted years ago. Sometimes they go for months without this quirk, then they start again. I try to mark them fixed and ignore them.

If you've checked and the rewrite is working fine, I would tend to blame the redirect warning on their practices. Information and warnings shown in the GSC can help to point you to things that need attention such as the original non-www/www issue, but their information is not always real time, up to date information. So once you have addressed the problem, all you can do is be patient while they notice.
8:53 am on Sept 23, 2015 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:Feb 10, 2005
posts: 497
votes: 0


Thanks not2easy! That might be the reason. Have a great day!
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members