$ vim /opt/bitnami/apps/wordpress/conf/httpd-prefix.conf
httpd-prefix.conf
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
sudo /opt/bitnami/ctlscript.sh restart apache