Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Vanilla forum inside CakePHP installation

Good day,

We've been struggling with this for a while and cannot find a solution.
There doesn't seem to be any specific answers to solve the problem.

We installed a Vanilla forum inside CakePHP /app/webroot/forums/ folder.
The forums are here: http://tribulant.com/forums/

As you navigate to any link, thread, etc... Vanilla adds the /app/webroot/ into the URL.
So it becomes: http://tribulant.com/app/webroot/forums/

It is due to rewrite rules and we're struggling to rewrite or strip this path out.

Any ideas and suggestions will be greatly appreciated so that we can get rid of that /app/webroot/ part in the URLs.

Comments

  • x00x00 MVP
    edited January 2014

    Yes

    $Configuration['Garden']['WebRoot'] = 'app/webroot/forums';
    $Configuration['Garden']['StripWebRoot'] = 'app/webroot';
    

    you may want to block external access to app/webroot/forums in your server rules.

    grep is your friend.

  • tribulanttribulant New
    edited January 2014

    @x00 said:
    Yes

    $Configuration['Garden']['WebRoot'] = 'app/webroot/forums';
    $Configuration['Garden']['StripWebRoot'] = 'app/webroot';
    

    you may want to block external access to app/webroot/forums in your server rules.

    Thank you for your reply and help.

    Unfortunately this doesn't work.
    It changes: http://tribulant.com/forums/discussions
    And: http://tribulant.com/app/webroot/forums/discussions
    To the following: http://tribulant.com/discussions

    So it removes the /forums/ part now as well which causes a problem.

  • Thanks to your guidance, we were able to fix this for the first time.

    $Configuration['Garden']['WebRoot'] = 'app/webroot/'; $Configuration['Garden']['StripWebRoot'] = 'app/webroot';

    That was the code that solved it.

  • And for those reading this thread... the file to put that code into is conf/config.php
    It may seem obvious but for non-technical people, this should help.

Sign In or Register to comment.