I am not much experienced using regex and fighting to solve the problem: I have a url like below:
http://example.com/ja-JP/blog/12345
I want to redirect the above url to below url :
http://jp.example.com/ja/blog/12345
Moreover I want to do the redirect using aws ALB redirection rule. And I will have to do the same URL redirection with different country-locale pattern. for example en-BZ, en-CA.
I need help how to capture the language-Country part and reform the source URL?