Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
cannot restore .htaccess in the private directory
Steps to reproduce
- restore files in private directory
- the operation fails with "Error while opening private:///.htaccess in write binary mode"
Proposed resolution
Mr. Google found this comment somewhere:
When you transfer your .htaccess file, make sure that the FTP transfer mode is set to “ASCII/TEXT” and not to “BINARY”. If the file is transferred in binary mode you will get an http error 500.
Comments