Your site directory contains an .htaccess
file that sits at the root level of your Drupal site. This file comes packaged with the Drupal install and gets installed with Drupal by default. You can view and edit this file using your cPanel or SFTP, if you first change its permissions to write
permissions as it's a ready-only file.
Your .htaccess
file allows you to tweak directory permissions, specify how Drupal handles error messages, and present errors (404 errors) to the end user. You can also override your PHP settings in this file in a similar way to how you override your PHP settings in your settings.php
file and your php.ini
file. This presents another option. Usually host servers provide multiple methods of tweaking your PHP settings in case you do not have permissions or access as a developer to the Drupal configuration file, the php.ini
file, or the .htaccess
file. In your .htaccess
file, you'll look for the version of PHP you're using (in this case PHP...