If your site changed all URLs from .html to .php, what do you need to do?
do 301 redirections can help you solve this type of question
Use 301 redirections from HTML to PHP
301 redirection is the great solution
Backup your database and save the copy off-site.