Quote Originally Posted by Website Rob View Post
In other words; Replace the URLs that are being redirected with the 'real' URLs; the ones you end up on after being redirected.

I'm not sure why your 'xml' Site map has so many invalid URLs but you should replace them with actual/correct URLs; no redirection involved.
I used the piece of code provided on the first page of this thread which changes/redirects URLs without "cPath" into ones with "cPath" and gives Google 301 redirect message... Sitemap was created with Google Sitemap automatically so I have no idea how would I replace "invalid URLs with actual/correct URLs" as you suggest... Should the URLs in the sitemap include the "cPath" bit or not? I'm really lost here trying to eliminate duplicate content on one side (which slowly seems to work with the aforementioned code provided in this thread), and on the other side fighting the Google too many redirects message...

I now submitted another sitemap generated with www.xml-sitemaps.com
utility, Google accepted it but hasn't indexed it yet so I don't know what their "comments" would be on this.
Here is the link to it:
http://www.all4coffee.com/sitemap.xml

Does this one look better in your opinion?