{"action":"created","issue":{"url":"https://api.github.com/repos/roots/wp-h5bp-htaccess/issues/14","labels_url":"https://api.github.com/repos/roots/wp-h5bp-htaccess/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/roots/wp-h5bp-htaccess/issues/14/comments","events_url":"https://api.github.com/repos/roots/wp-h5bp-htaccess/issues/14/events","html_url":"https://github.com/roots/wp-h5bp-htaccess/issues/14","id":71933610,"number":14,"title":".htaccess file is corrupted after WordPress update","user":{"login":"QWp6t","id":2104321,"avatar_url":"https://avatars.githubusercontent.com/u/2104321?v=3","gravatar_id":"","url":"https://api.github.com/users/QWp6t","html_url":"https://github.com/QWp6t","followers_url":"https://api.github.com/users/QWp6t/followers","following_url":"https://api.github.com/users/QWp6t/following{/other_user}","gists_url":"https://api.github.com/users/QWp6t/gists{/gist_id}","starred_url":"https://api.github.com/users/QWp6t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QWp6t/subscriptions","organizations_url":"https://api.github.com/users/QWp6t/orgs","repos_url":"https://api.github.com/users/QWp6t/repos","events_url":"https://api.github.com/users/QWp6t/events{/privacy}","received_events_url":"https://api.github.com/users/QWp6t/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T17:14:22Z","updated_at":"2015-05-19T20:30:16Z","closed_at":null,"body":"Haven't had a chance to dive into this yet, but I'm going to guess that the event that triggers writing new `.htaccess` file is being fired more than once. \r\n\r\nI'll play around with it this weekend."},"comment":{"url":"https://api.github.com/repos/roots/wp-h5bp-htaccess/issues/comments/103659939","html_url":"https://github.com/roots/wp-h5bp-htaccess/issues/14#issuecomment-103659939","issue_url":"https://api.github.com/repos/roots/wp-h5bp-htaccess/issues/14","id":103659939,"user":{"login":"VR51","id":5859901,"avatar_url":"https://avatars.githubusercontent.com/u/5859901?v=3","gravatar_id":"","url":"https://api.github.com/users/VR51","html_url":"https://github.com/VR51","followers_url":"https://api.github.com/users/VR51/followers","following_url":"https://api.github.com/users/VR51/following{/other_user}","gists_url":"https://api.github.com/users/VR51/gists{/gist_id}","starred_url":"https://api.github.com/users/VR51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VR51/subscriptions","organizations_url":"https://api.github.com/users/VR51/orgs","repos_url":"https://api.github.com/users/VR51/repos","events_url":"https://api.github.com/users/VR51/events{/privacy}","received_events_url":"https://api.github.com/users/VR51/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T20:30:16Z","updated_at":"2015-05-19T20:30:16Z","body":"This happens to me too on one of my client's sites. Other sites seem to be okay.\r\n\r\nThe directives are being written to .htaccess automatically multiple times. The first manual write done when permalinks are manually saved is good. The automatic subsequent writes appear to use a non UTF8 character encoding so .htaccess gets corrupted."}}