Hello,
In april 2016, I changed my domain from .fr to .com. The change went pretty smooth and my website quickly showed up as .com on google.fr and google.com in the same spots it was previously ranked.
In July 2016, I initiated a change of template (it was about time to change my website design). I was still using wordpress with yoast, and the pages had the same structure and content as before so it didn't affect the ranking.
In the next month, my website needed a better server so I had to move the website to a new server, I messed up with the IP address and for a few days if you were to type my website in .fr it wouldn't redirect in .com.
Funny thing as soon as google got aware of that, it started ranking my old .fr domain over my new .com domain in google.fr (because I presume my .fr has a higher authority)
But then after setting everything right It started re-ranking the .com in google.fr in the same spots.
A few months go by...
Beginning of October for no apparent reasons my .fr domain started taking over the .com in the ranking of google.fr..meaning that my old domain was showing. Since then I don't know what to do.
I found out that one of my competitor has been trying to link my website to p$$r vi$$a and so on.. and he also tried to link my website with anchor text his website name..
This issue only seems to show on google.fr because on google.com my website is not being affected.
I was recommended to move to wpengine (I am with go daddy).