As well, it seems like the required changes need to be placed after a */ and before a /*. I noticed in my editor that the code did not change to blue, like the rest of the code, but thought nothing of it, until I read ,a href=”https://www.drupal.org/node/2758845″>this thread and post by stuhannaford:
- File permissions – Make sure the settings.php file is set to 644 whilst editing, then revert back to 444 once finished. I had an issue with permissions in cPanel and eventually went via FTP which seemed to get around it. Really odd one this as cPanel kept reverting my file permissions to 444 from 644 and thus the changes weren’t actually being saved properly.
- DON’T just uncomment the lines in the settings example, you MUST copy it out and then place under the line */ and above the line /** on roughly lines 726 and 728
$settings['trusted_host_patterns'] = array(
'^www\.example\.com$',
'^example\.com$',
);
