We have a client with simple request to move the Public File folder up simply so that links will be shorter like
example.com/files/ instead of
I assumed this would just entail running
mv ./sites/default/files/ ./files/
in the root directory where my index.php resides and then changing the line in settings.php. Yet, this does not work, and I can't figure out why. In the
file_managed table the uri column looks like
public://example.png. Does that variable 'public' not resolve to the default public path?
Here's what my settings.php line reads:
# Change Public File directory $settings['file_public_path'] = 'files';
The folder is right next to my index.php file and the entire folder, including contents is set to 775, or rwxrwxr-x.
drwxrwxr-x. 47 apache webgrp 28672 Nov 15 10:14 files -rwxrwxr-x. 1 apache webgrp 648 Oct 25 08:17 index.php
Weirder, in the browser inspector, it appears that Drupal is looking for files at
/files/example.png and there is definately a matching file at
/files/. What am I missing? The only docs I can find are for Drupal 7, and all modules I've seen are only for 7 as well.