phpBB: Forcing phpBB Website To Redirect to https
Okay! So you’ve managed to install your SSL certificate to your phpBB website. The issue is, the website doesn’t redirect to https://website.com and keeps on going to http://website.com whenever you type your website URL in the browser search field.
So here’s what you need to do.
REMINDER: This approach is for phpBB websites only.
Steps:
1. Go to your phpBB website folder and look for the .htaccess file.
2. Download and edit the file with an editor. A notepad will do.
3. Add these two lines of code at the bottom of “RewriteEngine On” line.
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
4. Save the changes you’ve made.
5. Before you upload it to your website folder, make sure to make a backup copy of the old .htaccess.
6. Upload the file and overwrite when asked.
7. Try testing it by typing the URL of your website.
Goodluck!