Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Pretty urls don't work if it's only a domain with no trailing slash #10678
Steps to reproduce
URL should be:
Nextcloud version: (see Nextcloud admin page)
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from:
List of activated apps:
App listEnabled: - accessibility: 1.0.1 - activity: 2.7.0 - cloud_federation_api: 0.0.1 - comments: 1.4.0 - dav: 1.6.0 - federatedfilesharing: 1.4.0 - federation: 1.4.0 - files: 1.9.0 - files_pdfviewer: 1.3.2 - files_sharing: 1.6.2 - files_texteditor: 2.6.0 - files_trashbin: 1.4.1 - files_versions: 1.7.1 - files_videoplayer: 1.3.0 - firstrunwizard: 2.3.0 - gallery: 18.1.0 - logreader: 2.0.0 - lookup_server_connector: 1.2.0 - nextcloud_announcements: 1.3.0 - notifications: 2.2.1 - oauth2: 1.2.1 - password_policy: 1.4.0 - provisioning_api: 1.4.0 - serverinfo: 1.4.0 - sharebymail: 1.4.0 - support: 1.0.0 - survey_client: 1.2.0 - systemtags: 1.4.0 - theming: 1.5.0 - twofactor_backupcodes: 1.3.0 - updatenotification: 1.4.1 - workflowengine: 1.4.0 Disabled: - admin_audit - encryption - files_external - user_external - user_ldap
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
www-data owns htaccess files and is writable.
This is a test intance for my nextcloud.
GitMate.io thinks possibly related issues are #359 (Theming app doesn't work when pretty URLs is enabled), #7547 ([Clarification Request or Bug] Pretty Urls does not work for me), #5975 (Preview of theming does not work anymore), #10112 (Access over old URL ../owncloud no longer works), and #9182 (Just a question // Feature request // Pretty Share URL).
Some further testing:
Choosing option "No" and using webbased upgrade gives result as expected, pretty urls are working.
When you run maintenance:update:htaccess from cli this code is executed https://github.com/nextcloud/server/blob/master/lib/private/Setup.php#L446
Could you change overwrite.cli.url to 'https://nctest13pgsql.lan/' (append a /) and try again?
The strange thing is that the disappearance of the pretty URL have clearly been introduced by the upgrade process from 13.0.6 to 220.127.116.11 which have been done through the web interface and finished by the CLI command
I find the trouble: I was guilty, and adding the trailing slash fixed the pretty URL.