Hi everyone,
I am currently trying out NextCloud 12.0.2 and everything is working fine so far, except one detail.
I have tried enabling Pretty URLs by following the instructions:
- I made sure that mod_rewrite and mov_rewrite are active
- I added the following to config.php:
‘overwrite.cli.url’ => ‘https:// mydomain/nextcloud/’,
‘htaccess.RewriteBase’ => ‘/nextcloud/’, - I ran sudo -u myuser /opt/cpanel/ea-php71/root/usr/bin/php occ maintenance:update:htaccess
- I verified that the relevant parameters have been added to my /nextcloud/.htaccess:
(…)
RewriteRule . index.php [PT,E=PATH_INFO:$1]
RewriteBase /nextcloud/
(…)
My login URL is now indeed without index.php and I can log in properly, so something is working. But the layout is broken and most SVG files cannot be accessed.
I checked with Chrome developer tools and I can see that “core.js” is calling a lot of elements without the /nextcloud/ part in front of the URL. For example https:// mydomain/core/img/actions/add.svg?v=1 instead of https:// mydomain/core/img/actions/add.svg?v=1. This leads to a 404 not found.
I am on PHP 7.1.8 with Zend OPcache and APCu enabled. I also have php-fpm enabled and I’m managing the setup with cPanel.
Has anyone encountered this issue before?
Thanks!
-Manuel
PS: disregard the blank spaces after “https”, I had to do this because I am not allowed to post more than 2 links in the forum as a new user…