Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Registered User
Posts: 1
Joined: Sun May 06, 2018 7:27 pm


Post by sachinkhanna48 » Sun May 06, 2018 7:36 pm

Hey friends,

on my site I use phpBB as a support forum. I would like to redirect all traffic to always use https, instead of http. Generally on my site this works fine, but as phpBB comes with its own .htaccess file, I guess that it needs some tweaks.

What I did was I added the code below at the bottom of the phpBB .htaccess file, and it seems to do its job just fine, but I was wondering if any problems might occur that I haven't thought of, using that solution.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

User avatar
Registered User
Posts: 158
Joined: Thu Aug 18, 2011 2:41 pm
Location: Le Mans, France
Name: Yohan

Re: .htacccess

Post by Zoddo » Sun May 06, 2018 8:18 pm

Yes, your redirection may not works with routes handled by app.php.

Put your RewriteCond/RewriteRule right after the existing RewriteEngine on line.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: david63, DesignCart, EA117, invenio and 28 guests