Invalid filename .htaccess ignored file pattern

For some reason .htaccess can not be synced. It does not any of the pattern it says it matches. How do I allow .htaccess files to sync?

It specifically says that the file .htaccess is blocked?

.htaccess files are blocked by default: Configuration Parameters — Nextcloud latest Administration Manual latest documentation

You can work around/override this by placing an empty array for the forbidden_filenames parameter in your config.php:

'forbidden_filenames' => [],

:warning: Warning: Only do this if you fully understand the potential implications. This is particularly important when using Apache as the web server, as .htaccess files can modify server behaviour (e.g. access rules, redirects or PHP settings). Uploading .htaccess files could potentially change how files are served or expose sensitive data if Apache processes these files in directories within the data path.

Bummer but understandable. What confuses is the message. only the middle one is applicable.

The first sentence states what has been blocked, and the second part simply lists everything that is not permitted. Useful information, imho, in case you decide to rename the file.

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.