Zend certified PHP/Magento developer

Magento 2: 404 for all pages in latest magento 2.4.2

I have setup the latest Magento 2.4.2 in the local system. Now it’s showing me 404 to all pages if I access the URL without index.php

admin URL also not working with & without index.php

I don’t want to move index.php from pub to root so let me know if any other way to solve this issue.

any idea, please share.