I am recoding an entire website from ASP to PHP on a new server because the old server running Chillisoft into MySQL has been hacked and it cannot be recovered so it has been turned off permanently. The new server has the same IP address as the old one. Google has a cache of about 50,000 pages from this website with the extension .asp. The cached pages have the form: www.mywebsite.com/somedirectory/somefile.asp?id=123456.
What is the best way to have the new server respond to a cached Google URL that points at an .asp page and change it so the new server delivers the corresponding dynamic php page - eg: www.mywebsite.co./somedirectory/somefile.php?id=123456.
The new site will use exactly the same directory structures as the old site and all its internal links will point correctly to php pages. There will be no .asp pages anywhere.
Ideally I want Gooogle to eventually re-index the entire new php site as it has been on page 1 for the last 10 years!
Any help/comments will be gratefully received.