I encountered with a problem saying that headers were already sent while using slugs with mod_rewrite rules shown in bbpress FAQ.
And just to let people who was or will be up against this problem; i solved it changing the line 168 in bb-includes/pluggable.php
Change the line with this code line :
`?><script>location.href="<?=$location?>";
</script><?php`