Magento 2.4.3 Localhost Issues

Job ID: 33379230

Budget: ₹600 – ₹1,500 INR

Looking for a Magento developer who can fix the issue on a local machine in Ubuntu.
-> Apache Server
-> Mysql Database
-> Ubuntu OS
Issues: Automatically index.php is added to the local Magento site URL, due to this Magento links are showing 404 and after removing index.php for that is working fine for the frontend and backend.

Working Url: http://127.0.0.1/magento2/pub/customer/account/create/
Non-Working Url: http://127.0.0.1/magento2/pub/index.php/customer/account/create/
Related categories: PHP Linux Magento Apache UNIX