That depends on the webserver and the OS you are using, and whether you are running Nextcloud behind a reverse proxy or not.
If you are using Apache just make sure .htaccess is enabled. In Debian/Ubuntu open the file /etc/apache2/apache2.conf
. Find the section <Directory /var/www/>
and change the directive AllowOverride None
to AllowOverride All
. In addition to that you can also set it seperatly per VirtualHost. An example configuration for an Apache VirtualHost can be found here…
After you made the changes, restart apache and upgrade the .htacces file of your Nextcloud installation:
sudo -u www-data php /path/to/nextcloud/occ maintenance:update:htaccess
For NGINX and/or Reverse Proxy configurations see…
https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html
and
Hope that helps…