I had links like example.com/?location=boston
on my site. These were indexed by Google. Due to obvious SEO reasons, I had to change the URL structure to example.com/deals/boston
. The old URLs are there on Google results and redirect correctly to new URL.
What I want to know is: while doing the redirect, is WordPress also doing a 301 header so that Google can update its indexes or there is something that I am supposed to do?
Basically, I want Google to update its indexes i.e. replace example.com/?location=boston
with example.com/deals/boston