I have a website hosted on aws lighsail server, which use the bitnami wordpress. I just install ssl certificate on the apache2, then every time I go to the HTTPS home page, then I am always redirected to http.
but if I login Manage Login Page, then it works.
I think this is a setup issue on the wordpress side instead on the apache side.
Can anyone give me some help to figure out the issue.
to do this you have to set up your server to force https connection, after you have installed ssl certificate. Sometimes, in the same page of ssl certificate there is an option to force https. You can contact your hosting. In alternative, you can force https by editing .htaccess file in your website root (by code editor of your hosting or via ftp). You have to add this code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.yoursite.com [NC]
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [L,R=301,NC]
Another alternative is the installation of the plugin Really Simple SSL, but I don’t like this option for future updates.
I hope this answer is helpful :)