Mod_rewrite is enabled but index.php still exists in web address

I found my answer in this topic: https://help.nextcloud.com/t/howto-get-rid-of-index-php-in-nextcloud-path-shorter-url/74632

Sorry if I wasted anyone time.