Using PHPBB and SSL

Posted on 2009-04-04
Last Modified: 2013-11-11
Hello experts,

I'm new to use of SSL. I'm running a forum based on PHPBB3 and I'd like to implement SSL so that users are always under HTTPS when using the board. I know it might sound odd because its quite inusual to see a forum under SSL, but some of the private sections of it contain sensitive data.

Back to the point, I've googled to find an answer but nothing worked until now. Could someone write me a brief walkthrough with the steps I should follow?

Note: I already have an installed SSL certificate in cPanel server.

Question by:striker46
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 10

Accepted Solution

cyberstalker earned 500 total points
ID: 24067306
I think the easiest solution is to use ModRewrite.

Place this in a .htaccess file in your phpBB main directory.
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

Open in new window


Author Comment

ID: 24067364
Thanks for your quick reply, seems to do the trick because it rewrites the URL. But now the page won't load, it displays a browser error page, giving this error code: ssl_error_rx_record_too_long

Any ideas?
LVL 10

Expert Comment

ID: 24067440
That error indicates that https is not correctly set up on the server. I am not very familier with cPanel, but on most hosts you have to let them set up SSL for you and it cannot be done with cPanel.
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Author Comment

ID: 24067463
Yes they already set it up for me, and appears as set up in my backend. Could it be it takes a while to work? This was like 2 hours ago...

LVL 10

Expert Comment

ID: 24067494
SSL should not take time to set up. Could you post the error log. You can find it in cPanel.

Author Comment

ID: 24067566
Apparently there are no errors in the log as of today. The others can't be related to this. So I guess cPanel is not logging those SSL errors at all.

If you don't mind I will write a quick help ticket to my hosting support and ask them to fix this problem; I leave shortly this post open and will confirm ASAP that I've got PHPBB to work and assign the points.

Author Comment

ID: 24070388
Technical service fixed the SSL config, now it works.
The code you provided for .htaccess works perfect too, thank you very much!

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Introduction This article is intended for those who are new to PHP error handling (  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question