I followed the solution here.
Do I also need the _headers file? This Google article suggests that 301 is enough to change the URL in search results.
_headers
Please advise. Thank you.