{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/7065","repository_url":"https://api.github.com/repos/Yoast/wordpress-seo","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/7065/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/7065/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/7065/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/7065","id":225898683,"number":7065,"title":"Problem with redirects inserted by the plugin","user":{"login":"JoranSchipper","id":5363447,"avatar_url":"https://avatars1.githubusercontent.com/u/5363447?v=3","gravatar_id":"","url":"https://api.github.com/users/JoranSchipper","html_url":"https://github.com/JoranSchipper","followers_url":"https://api.github.com/users/JoranSchipper/followers","following_url":"https://api.github.com/users/JoranSchipper/following{/other_user}","gists_url":"https://api.github.com/users/JoranSchipper/gists{/gist_id}","starred_url":"https://api.github.com/users/JoranSchipper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoranSchipper/subscriptions","organizations_url":"https://api.github.com/users/JoranSchipper/orgs","repos_url":"https://api.github.com/users/JoranSchipper/repos","events_url":"https://api.github.com/users/JoranSchipper/events{/privacy}","received_events_url":"https://api.github.com/users/JoranSchipper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-03T07:01:18Z","updated_at":"2017-05-04T07:25:27Z","closed_at":null,"body":"Hey guys,\r\n\r\nFirst of all great plugin!\r\n\r\nI have a problem with inserting redirects into a client's website.\r\n\r\nIn my opinion I think the Redirects should only match the given path For example:\r\n\r\nGiven i have the following redirect:\r\nRedirect 301 /location /contact\r\n\r\nWhen i try to visit the following url:\r\nhttp://example.com/location\r\n\r\nThen i get redirected to:\r\nhttp://example.com/contact\r\n\r\nWhich is fine. However,\r\n\r\nWhen i try to visit the following url:\r\nhttp://example.com/location/test\r\n\r\nThen i get redirected to:\r\nhttp://example.com/contact/test\r\n\r\nWhich is explainable if we look at the Apache documentation of the Redirect directive:\r\n\r\nhttps://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirect\r\n\"Any request beginning with URL-path will return a redirect request to the client at the location of the target URL. Additional path information beyond the matched URL-path will be appended to the target URL.\"\r\n\r\nBut this is not what I want because this can cause conflicts with other redirects in the htaccess.\r\n\r\nIs there any possibility, other than the regex option, to insert redirect that only redirect when it matches the given path? For example, by using the RedirectMatch directive instead of Redirect\r\nhttps://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirectmatch"},"comment":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/comments/299114234","html_url":"https://github.com/Yoast/wordpress-seo/issues/7065#issuecomment-299114234","issue_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/7065","id":299114234,"user":{"login":"thulshof","id":13545824,"avatar_url":"https://avatars1.githubusercontent.com/u/13545824?v=3","gravatar_id":"","url":"https://api.github.com/users/thulshof","html_url":"https://github.com/thulshof","followers_url":"https://api.github.com/users/thulshof/followers","following_url":"https://api.github.com/users/thulshof/following{/other_user}","gists_url":"https://api.github.com/users/thulshof/gists{/gist_id}","starred_url":"https://api.github.com/users/thulshof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thulshof/subscriptions","organizations_url":"https://api.github.com/users/thulshof/orgs","repos_url":"https://api.github.com/users/thulshof/repos","events_url":"https://api.github.com/users/thulshof/events{/privacy}","received_events_url":"https://api.github.com/users/thulshof/received_events","type":"User","site_admin":false},"created_at":"2017-05-04T07:25:27Z","updated_at":"2017-05-04T07:25:27Z","body":"Currently there is no other option besides using regex to change to behavior of the redirects generated by Yoast SEO for WordPress. Adding redirects manually to your .htaccess wil be the solution for now, but we'll discuss your request internally. \r\n\r\nWe'll inform you in this issue as soon as a decision has been made. "}}
{"actor":{"display_login":"thulshof"}}