.htaccess file checklist
The file encoding of the .htaccess file must be in ANSI format.
For other formats such as UTF-8, modify the file encoding to ANSI.
It should be in the following format.
<Directory "/var/www/html">
...
AllowOverride All
...
</Directory>
The /var/www/html part may be different for each configuration environment.
AllowOverride All should not be set as a duplicate below.
I added AllowOverride All to httpd.conf before, but it didn't work properly, and when I checked again carefully, the setting was duplicated as AllowOverride None under AllowOverride All.