You are adding the
Rewrite lines in the wrong place. You need to add them right below the
DocumentRoot line, not inside the
<Directory> section as you did. Please move them to the mentioned place and restart the Apache service for changes to take effect.
sudo /opt/bitnami/ctlscript.sh restart
Apart from that, we have a Support Tool that will gather relevant information for us to analyze your configuration and logs. Could you please download and execute it on the machine where the stack is running by following the steps described in the guide below?
How to Run the Bitnami Support Tool
Please note that you need to paste the code outputted by the tool in your reply.
Hope it helps,