{"action":"created","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/5231","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/5231/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/5231/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/5231/events","html_url":"https://github.com/TryGhost/Ghost/issues/5231","id":73817551,"number":5231,"title":"301 redirects to the link which not include date","user":{"login":"pupboss","id":8395112,"avatar_url":"https://avatars.githubusercontent.com/u/8395112?v=3","gravatar_id":"","url":"https://api.github.com/users/pupboss","html_url":"https://github.com/pupboss","followers_url":"https://api.github.com/users/pupboss/followers","following_url":"https://api.github.com/users/pupboss/following{/other_user}","gists_url":"https://api.github.com/users/pupboss/gists{/gist_id}","starred_url":"https://api.github.com/users/pupboss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pupboss/subscriptions","organizations_url":"https://api.github.com/users/pupboss/orgs","repos_url":"https://api.github.com/users/pupboss/repos","events_url":"https://api.github.com/users/pupboss/events{/privacy}","received_events_url":"https://api.github.com/users/pupboss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-07T03:02:16Z","updated_at":"2015-05-07T03:59:59Z","closed_at":null,"body":"Hi,there\r\n\r\nNow my post links don't include date, like this: `http://mysite.com/2015/04/12/my-post-name/` -> `http://mysite.com/my-post-name/`\r\n\r\nThe server is Nginx, what should I do with rewrite opinion....\r\n\r\nI write this \r\n\r\n    location / {\r\n        proxy_set_header X-Real-IP  $remote_addr;\r\n        proxy_set_header X-Forwarded-For $remote_addr;\r\n        proxy_set_header Host $host;\r\n        proxy_pass http://127.0.0.1:2368;\r\n\r\n        rewrite ^(201\\d)/(\\d\\d)/(\\d\\d)/(.*)/$ $4/ permanent;\r\n    }\r\n\r\nbut it don't work"},"comment":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/comments/99704726","html_url":"https://github.com/TryGhost/Ghost/issues/5231#issuecomment-99704726","issue_url":"https://api.github.com/repos/TryGhost/Ghost/issues/5231","id":99704726,"user":{"login":"pupboss","id":8395112,"avatar_url":"https://avatars.githubusercontent.com/u/8395112?v=3","gravatar_id":"","url":"https://api.github.com/users/pupboss","html_url":"https://github.com/pupboss","followers_url":"https://api.github.com/users/pupboss/followers","following_url":"https://api.github.com/users/pupboss/following{/other_user}","gists_url":"https://api.github.com/users/pupboss/gists{/gist_id}","starred_url":"https://api.github.com/users/pupboss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pupboss/subscriptions","organizations_url":"https://api.github.com/users/pupboss/orgs","repos_url":"https://api.github.com/users/pupboss/repos","events_url":"https://api.github.com/users/pupboss/events{/privacy}","received_events_url":"https://api.github.com/users/pupboss/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T03:59:59Z","updated_at":"2015-05-07T03:59:59Z","body":"Oh I know, open the log, and I can see anything\r\n\r\n    rewrite ^/(201\\d)/(\\d\\d)/(\\d\\d)/(.*)/$ $4/ permanent;\r\n\r\nit is OK"}}