My website was hacked on October 24th, and unfortunately, it was hacked again on October 27th. In response to these security breaches, I changed the server IP and upgraded the PHP version from 5.6 to 8.1.
Despite taking these measures, I have observed a decline in my website’s ranking after the server change. When the website was initially hacked, I added a no-index tag to prevent negative effects on rankings. Ideally, the ranking should not have been affected. However, the decline occurred after the server changes.
I would appreciate your insights on whether the hacking or the server change has had the most significant impact on my ranking.