Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosting phpBB3 in a subfolder alongside CakePHP

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

Now, I wish to host a phpBB3 installation in a folder called "forum" under my web root. So when somebody accesses (http://www.example.com/forum), they can use phpBB.

How do I achieve this? I've tried looking into CakePHP documentation for routes configuration, but couldn't find anything related to this.

I'm pretty sure this has something to do with .htaccess but not sure exactly what.

Note - I tried creating a folder called forum under app/webroot but this often redirects to http://www.example.com/app/webroot/forum.

like image 738
kapeels Avatar asked Apr 20 '26 10:04

kapeels


1 Answers

In Cake's root .htaccess file you can put:

RewriteRule ^forum/ - [L]

If you insert this just before RewriteRule ^$ app/webroot/ [L] then it will allow requests to http://www.example.com/forum to go straight to phpBB, bypassing Cake.

like image 81
Joseph Avatar answered Apr 23 '26 00:04

Joseph



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!