Forums

Join
bbPress Support ForumsTroubleshootingHow to prevent bb_repermalink from calling a 404

Info

How to prevent bb_repermalink from calling a 404

  1. I need to create a few urls from my forum root at /community like so:

    /community/forums/ - shows just a simple list of all forums
    /community/leaderboards/ -custom functionality
    /community/achievements/ - more custom functionality

    It's easy enough to achieve this with a query string and if statements in front-page.php, but I'm trying to use .htaccess to achieve this like so:

    RewriteRule ^forums/$ index.php?view=forums [L,QSA]

    I was getting the bbpress 404 page until I drilled down into bb-admin/functions.bb-core.php and changed line 667 from

    $issue_404 = true;

    to

    $issue_404 = false

    It worked fine but I'm not comfortable changing the core code like that, as it's indicitave that I'm doing something wrong - but what exactly? What should I change about my approach to get the page to serve correctly?

  2. Its been a few weeks, figured I'd bump this. Can anybody shed some light?

  3. Figured it out - just had to add a P to the RewriteRule:

    RewriteRule ^forums/$ index.php?view=forums [P,L,QSA]

  4. You must log in to post.