How to make even prettier urls?

Nextcloud version: 14.0.0
Operating system and version: Ubuntu Server 18.04.1
Apache or nginx version: nginx 1.14.0
PHP version: 7.2

Hi, i`m new to self-hosting, but i managed to deploy Nextcloud 14 on my home server and everything works fine, but is it possible to make even prettier URLs?
I dont have index.php in urls, but they look like this

How can i remove ?dir= and &fileid=297 from urls in apps/files?

Thank you.