Skip to content

Nextcloud - don't include /index.php by default in the url #1547

@JedMeister

Description

@JedMeister

poisonborz noted in the forums that the Nextcloud/Apache conifg can be tweaked to rewrite the address bar URL that the user sees (and remove the index.php). As suggested/requested, we should add this by default for the v16.1 release IMO.

To repeat the steps required as script:

cd /var/www/nextcloud
echo "'htaccess.RewriteBase' => '/'" >> config.php
chown www-data .htaccess
runuser -u www-data php occ maintenance:update:htaccess
chown root .htaccess
systemctl restart apache2

FWIW, this requires mod_rewrite and mod_env (both enabled in the Nextcloud build code by default).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions