Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to prevent bb_repermalink from calling a 404

  • @aphelionz

    Participant

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @aphelionz

    Participant

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

    @aphelionz

    Participant

    Figured it out – just had to add a P to the RewriteRule:

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar