I am getting issues in 301 redirections
Example 1
I have a URL called https://www.example.com/abc/xyz-1 and I have to redirect to https://www.example.com/abc/xyz
So I have tried the below code and it's working.
Redirect 301 /abc/xyz-1 https://www.example.com/abc/xyz
Example 2
I have one more URL that I have to redirect
https://www.example.com/abc to https://www.example.com/postname and I tried the below code and this is also working.
Redirect 301 /abc https://www.example.com/postname
Now my issue is, that once I add the above code in my htaccess then the first example stops working.
Any idea how to solve this issue?