i migrated a site from php to dnn,
a couple of URL's indexed in google, now when user click on a google result that has ".php" extension see the following error

but without the php extension in the end of URL the page redirect to dnn 404 page.
now how can i do this redirect without the above error.
how can i create a redirect role in host friendly url setting?