My old WordPress configuration added index.php to the permalinks of all my pages.
e.g: https://example.com/index.php/contact
etc.,
It was indexed already by google crawler. Now I reconfigured WordPress to make the URLs to look like https://example.com/contact
But google search still has the results showing https://example.com/index.php/contact
.
All old URLs are redirecting to corresponding new pages. But I don't want to display index.php in google search results.
How to remove indexed URLs with index.php and to display the new URLs?