OK. I tried the above and no go, so I tried the following.
Here’s the contents of my nextcloud.conf file in the /etc/apache2/sites-available folder
==================
Alias /nextcloud “/var/www/html/nextcloud/”
RewriteEngine On
RewriteRule /sites/(.*) https://mydomain.com/nextcloud/index.php/apps/cms_pico/pico/$1
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
==============
After saving nextcloud.conf, I then restart apache.
If I then create a website called ‘test’ in the Pico-CMS app, the url given for that becomes
https://mydomain.com/sites/test
If I click that link in the Pico-CMS app, the browser opens up with the error.
=====================
Not Found
The requested URL /sites/test was not found on this server.
Apache/2.4.18 (Ubuntu) Server at 192.168.0.22 Port 443
=================
Am I missing something here? and if so should the
RewriteEngine On
RewriteRule /sites/(.*) https://mydomain.com/nextcloud/index.php/apps/cms_pico/pico/$1
be somewhere else. If so where.
Hoping this is one of those Duhhh moments.
Thanks
Nick