Apache rewrite to remove index.php

Is this the case with NC? Because I’ve confirmed both are enabled and it’s done a whole lot of nothing.

This is outdated documentation in Nextcloud and ownCloud, to enable index.php URLs the following condition needs to be met:

  1. htaccess.RewriteBase in your config.php is linking to the web root folder (e.g. /nextcloud if you acesss foo.com/nextcloud, or / if it lives on the web root)
  2. mod_env and mod_rewrite need to be enabled

Afterwards you should run occ maintenance:update:htaccess on your console :slight_smile:

3 Likes