.htacccess

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
sachinkhanna48
Registered User
Posts: 1
Joined: Sun May 06, 2018 7:27 pm

.htacccess

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
Zoddo
Registered User
Posts: 158
Joined: Thu Aug 18, 2011 2:41 pm
Location: Le Mans, France
Name: Yohan
Contact:

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: Google [Bot], madelharri, mouthpiece and 37 guests