Pretty URLs on OpenBSD 6.6 httpd

I’m having troubles getting pretty urls to work on openbsd 6.6 httpd. I have the following options set in config.php:

'overwrite.cli.url' => '',
'htaccess.RewriteBase' => '/',

Navigating to, for example, brings me to the files app, but any links from inside nextcloud still include /index.php/, ie

You need to execute

occ maintenance:update:htaccess

$ doas -u www ./occ maintenance:update:htaccess
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see
.htaccess has been updated

The behaviour is the same after running the command.

with occ they mean php occ

take a look at the NC manual!

The guide ( is only for apache webserver.