How to remove index.php from frontend URL?

I have removed the customer_index variable value ‘index.php’ for the frontend from the config.local.php file, and my store is working properly. Is it feasible to remove the index.php? Will our website function correctly without the index.php URL?

I’m not sure how removing index.php from the config.local.php will affect the site but it’s probably not a good idea.

If you use the SEO addon, it will rewrite the url without index.php.