Skip to:
Content
Pages
Categories
Search
Top
Bottom

wpmu/bbpress logins work, forums don’t!


  • mpm
    Member

    @mpm

    login between my wpmu installation and my bbpress seem to work okay but when I click on a topic link on the frontpage I get a page not found error from my wpmu installation…

    WPMU: http://www.mpm.org.au (blog signup disabled but you can sign up as a user)

    BBPress: http://www.mpm.org.au/community/

    Previously I did have it all working but only with WP single not MU.

    Any help would be much appreciated!

    This is my config file:

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘xxxx’); // The name of the database

    define(‘BBDB_USER’, ‘xxxx_xxxx’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘xxxx’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_'; // Only letters, numbers and underscores please!

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://www.mpm.org.au'; // Example: ‘http://bbpress.example.com’

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/community/'; // Example: ‘/forums/’

    // What are you going to call me?

    $bb->name = ‘MakePeace Media LTD';

    // This must be set before running the install script.

    $bb->admin_email = ‘myemail';

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = true;

    // The number of topics that show on each page.

    $bb->page_topics = 15;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 0;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ‘xxxx'; // Example: ‘xxxx’

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave the rest as it is.

    $bb->wp_table_prefix = ‘wp_'; // WordPress table prefix. Example: ‘wp_';

    $bb->wp_home = ‘http://www.mpm.org.au'; // WordPress – Options->General: Blog address (URL) // No trailing slash. Example: ‘http://example.com’

    $bb->wp_siteurl = ‘http://www.mpm.org.au'; // WordPress – Options->General: WordPress address (URL) // No trailing slash. Example: ‘http://example.com’

    if ( isset( $bb->wp_table_prefix ) ){

    $bb->usercookie = “wordpressuser”;

    $bb->passcookie = “wordpresspass”;

    }

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

Viewing 4 replies - 1 through 4 (of 4 total)

  • benbeltran
    Member

    @benbeltran

    It seems to be an .htaccess conflict … check your rules.


    mpm
    Member

    @mpm

    I have .htaccess in my community directory for permalinks that says:

    <ifmodule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /community/

    RewriteRule ^community/([0-9]+)/page/([0-9]+)$ /community/forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^community/([0-9]+)$ /community/forum.php?id=$1 [L,QSA]

    RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /community/topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^topic/([0-9]+)$ /community/topic.php?id=$1 [L,QSA]

    RewriteRule ^tags/(.+)/page/([0-9]+)$ /community/tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^tags/(.+)/?$ /community/tags.php?tag=$1 [L,QSA]

    RewriteRule ^tags/?$ /community/tags.php [L,QSA]

    RewriteRule ^profile/([0-9]+)/page/([0-9]+)$ /community/profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)$ /community/profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /community/profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([0-9]+)$ /community/profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /community/view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([a-z-]+)$ /community/view.php?view=$1 [L,QSA]

    RewriteRule ^rss/$ /community/rss.php [L,QSA]

    RewriteRule ^rss/community/([0-9]+)$ /community/rss.php?community=$1 [L,QSA]

    RewriteRule ^rss/topic/([0-9]+)$ /community/rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([a-z]+)$ /community/rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([0-9]+)$ /community/rss.php?profile=$1 [L,QSA]

    </ifmodule>

    I have .htaccess in my root that says:

    RewriteEngine On

    RewriteBase /

    #uploaded files

    RewriteRule ^(.*/)?files/$ index.php [L]

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule . – [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]

    RewriteRule . index.php [L]

    and .htaccess.dist in root that says

    RewriteEngine On

    RewriteBase BASE/

    #uploaded files

    RewriteRule ^(.*/)?files/$ index.php [L]

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule . – [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]

    RewriteRule . index.php [L]


    chrishajer
    Participant

    @chrishajer

    Is there an .htaccess in the directory one level above? .htaccess rules are additive, I think. So if there is one in the directory one level up, those could be conflicting with the .htaccess you have in the community directory.

    edit: sorry, I just reread all the notes you posted. I don’t understand enough about .htaccess to know what the problem is. SamBauers here has made several posts about .htaccess.

    Here’s one:

    http://bbpress.org/forums/topic/pretty-permalinks-not-working?replies=24#post-7743


    mpm
    Member

    @mpm

    Thanks guys.

    Permalinks set to off in config fixes the problem so I better have a better look at how to set that up properly.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.