Enable SEO url in nextcloud
To enable SEO url in next cloud, first make sure your web server have mod_rewrite module enabled.
Edit config.php file
1 |
vi config/config.php |
add following
1 2 |
'overwrite.cli.url' => 'https://yourdomain.com/', 'htaccess.RewriteBase' => '/', |
overwrite.cli.url may already there, in that case, don’t add it again.
Now run
1 |
sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess |
See NextCloud