Remove index.php from URL

Is it possible to remove index.php from the URL when viewing my Matomo dashboard?

Currently, the URL is https://matomo.example.com/index.php?module=CoreHome&action=index&idSite=1&period=range&date=last30

What I would like for the URL to be is https://matomo.example.com/?module=CoreHome&action=index&idSite=1&period=range&date=last30

Basically, the system automatically includes index.php in the URL bar and I’d like to disable this and just have the Query Strings present.

Does anyone know how to do this?

Thanks!

It unnecessary but you might get it done over htaccess rewrite rules.