PhpBB3 hosting in a subfolder with CakePHP

I have CakePHP files in my web root (suppose http://www.example.com/).

Now I want to place the phpBB3 installation in a folder called "forum" under my web root. Therefore, when someone accesses ( http://www.example.com/forum), they can use phpBB.

How do I achieve this? I tried to examine the CakePHP documentation for configuring routes, but couldn't find anything like it.

I am sure that this is somehow related to .htaccess, but not entirely accurate.

Note. I tried to create a folder under forumunder app/webroot, but this is often redirected to http://www.example.com/app/webroot/forum.

+3
source share
1 answer

In the root root file .htaccessyou can put:

RewriteRule ^forum/ - [L]

RewriteRule ^$ app/webroot/ [L], http://www.example.com/forum phpBB, Cake.

+5

All Articles