Forum

phpBB UrlToolkit for phpBB 3.2.2

Kalileo
18 August 2018, 07:51
Hi all,

it seems that for phpBB 3.2 you need to modify the UrlToolkit, instead of
Match [^?]*(\?.*)? Rewrite /app.php$1
it must be
Match ^(.*)$ Rewrite /app.php/$1

(taken and adapted from the nginx config example at phpBB)

Latest phpBB seems to have replaced the '?' in some Urls, especially in the installer, with '/'.

The UrlToolkit which worked for me to install phpBB 3.2.2 is:

UrlToolkit {
ToolkitID = phpBB
RequestURI exists Return
# Match [^?]*(\?.*)? Rewrite /app.php$1
Match ^(.*)$ Rewrite /app.php/$1
}


Hugo, happy holidays to you!
Kalileo
18 August 2018, 08:01
On second look, that seems to be not entirely correct. It seems to be that NoExtensionAs = php alone did the trick.
So, the old UrlToolkit Match-Rewrite will not allow the installation to work, that has to be taken out. However then the new one posted before seems to be not needed, if the NoExtensionAs = php is present as shown below. Installation worked, and also the forum seems to be working correctly.

VirtualHost {
Hostname = .....com, www.....com
WebsiteRoot = /srv/www/virtual/.../htdocs
AccessLogfile = /srv/www/virtual/.../logfiles/access.log
ErrorLogfile = /srv/www/virtual/.../logfiles/error.log
StartFile = index.php
NoExtensionAs = php
TimeForCGI = 30
UseFastCGI = PHP7
TLScertFile = certs/.....pem
# RequireTLS = yes
UseToolkit = badbots
}
Hugo Leisink
21 August 2018, 21:49
Ok, will remove it from my website. Thanks!
This topic has been closed.