{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3947","repository_url":"https://api.github.com/repos/Yoast/wordpress-seo","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3947/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3947/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3947/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/3947","id":134647405,"number":3947,"title":"Sitemap redirection issue","user":{"login":"QROkes","id":6166844,"avatar_url":"https://avatars.githubusercontent.com/u/6166844?v=3","gravatar_id":"","url":"https://api.github.com/users/QROkes","html_url":"https://github.com/QROkes","followers_url":"https://api.github.com/users/QROkes/followers","following_url":"https://api.github.com/users/QROkes/following{/other_user}","gists_url":"https://api.github.com/users/QROkes/gists{/gist_id}","starred_url":"https://api.github.com/users/QROkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QROkes/subscriptions","organizations_url":"https://api.github.com/users/QROkes/orgs","repos_url":"https://api.github.com/users/QROkes/repos","events_url":"https://api.github.com/users/QROkes/events{/privacy}","received_events_url":"https://api.github.com/users/QROkes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T17:49:18Z","updated_at":"2016-03-07T16:35:55Z","closed_at":null,"body":"Redirections at DNS and Server level works as expected for all pages.\r\nExample:\r\n  - My DNS redirects all the non-www traffic to the www page.\r\n  - My server (nginx) redirects all the non-www requests to the www site.\r\n\r\nEverything works just fine, excepts for Yoast Sitemaps.\r\nHow to reproduce this issue:\r\n  - http://www.mydomain.com/sitemap_index.xml is OK\r\n  - http://mydomain.com/sitemap_index.xml is the only url that can't do the proper redirection, causing an **\"Unknow error (805303f4) - http://www.mydomain.com/main-sitemap.xsl\"**\r\n\r\nI get this error with any server configuration and OS, Apache (shared hosting), NGINX (my own AWS EC2 instance) and always get the error, so I can discard this is related with my server configuration.\r\n\r\nAlso, you can reproduce this issue in the inverse way, typing www urls for non-www sites."},"comment":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/comments/193335537","html_url":"https://github.com/Yoast/wordpress-seo/issues/3947#issuecomment-193335537","issue_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3947","id":193335537,"user":{"login":"Rarst","id":737584,"avatar_url":"https://avatars.githubusercontent.com/u/737584?v=3","gravatar_id":"","url":"https://api.github.com/users/Rarst","html_url":"https://github.com/Rarst","followers_url":"https://api.github.com/users/Rarst/followers","following_url":"https://api.github.com/users/Rarst/following{/other_user}","gists_url":"https://api.github.com/users/Rarst/gists{/gist_id}","starred_url":"https://api.github.com/users/Rarst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rarst/subscriptions","organizations_url":"https://api.github.com/users/Rarst/orgs","repos_url":"https://api.github.com/users/Rarst/repos","events_url":"https://api.github.com/users/Rarst/events{/privacy}","received_events_url":"https://api.github.com/users/Rarst/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T16:35:55Z","updated_at":"2016-03-07T16:35:55Z","body":"Could you please elaborate on specifics of your redirect configuration?\r\n\r\nIf you are redirecting at webserver level then it happens _before_ PHP / WordPress / plugins have a chance to get involved at all."}}