Info
- 3 posts
- 1 voice
- Started 2 years ago by AphelionZ
- Latest reply from AphelionZ
- This topic is not resolved
How to prevent bb_repermalink from calling a 404
-
- Posted 2 years ago #
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 functionalityIt'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 = falseIt 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?
-
- Posted 2 years ago #
Its been a few weeks, figured I'd bump this. Can anybody shed some light?
-
- Posted 2 years ago #
Figured it out - just had to add a P to the RewriteRule:
RewriteRule ^forums/$ index.php?view=forums [P,L,QSA]
-
You must log in to post.