[htaccess] HTTP to HTTPS for phpBB

https://phpbbstudio.com/ext/phpbbstudio/studio/styles/all/theme/images/studio-round-black.svg Website 2018-03-27T22:22:09 phpBB Studio https://phpbbstudio.com/ext/phpbbstudio/studio/styles/all/theme/images/studio-round-green.svg https://phpbbstudio.com/ext/phpbbstudio/studio/styles/all/theme/images/studio-round-green.svg
note

Be sure to have a SSL Certificate installed.
See Let’s Encrypt which is free and auto-renew itself every three months.

In ACP/Cookies Settings:

Cookies Secure: Enabled
Cookie name: change the name adding a simple char.

Now OPEN the .htaccess file located into the main Board’s root mydomain/BOARD_ROOT
with a decent text-editor (like Notepad++).

The first 2 lines should look like this:

<IfModule mod_rewrite.c>
RewriteEngine on

AFTER, ADD

RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Once done, that block of code should look like this
.

text-editor.png
text-editor.png (13.83 KiB) Not viewed yet

.
SAVE the file (UTF-8 without BOM) and EXIT.

Or take the file already modified.

htaccess.zip
(1.2 KiB) Downloaded 49 times

Nothing more to do as per the 95% of the cases. Issues… misunderstood ❓
Feel free to ask us, opening an own topic with a decent title in this forum. 🤓

This article is a stub, will be updated soon.