djuggler (@djuggler)

Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • I just now got this working! The solution is posted at https://bbpress.org/forums/topic/dropping-multiviews-support#post-16050

    Quite simply, turn 1and1 hosting has MultiViews on by default and it must be turned off in .htaccess with:

    Options -MultiViews

    Then add the /bb-admin/rewrite-rules.php mod_rewrite AFTER the Options -MultiViews.

    That was too simple to take this long to resolve.

    livibetter: You are right. I reversed the modifications after testing. They are in place now. A side note, if the directory ‘youcantfindme’ does not exist then http://make2for1.com/redir returns:

    “Error 404 – Not found

    Your browser can’t find the document corresponding to the URL you typed in.”

    And shows http://make2for1.com/youcantfindme in the address field of the browser. If I create the directory ‘youcantfindme’ and put an index file in there then http://make2for1.com/redir does indeed show the index file and the address changes to http://make2for1.com/youcantfindme.

    The debug test shows the following:

    —-

    http://make2for1.com/forum.php?id=1

    REQUEST_URI: string(15) “/forum.php?id=1”

    should be: string(14) “/forum/general”

    full permalink: string(38) “http://www.make2for1.com/forum/general”

    PATH_INFO: string(10) “/forum.php”


    http://www.make2for1.com/forum/general

    Error 404 – Not found

    Your browser can’t find the document corresponding to the URL you typed in.

    [That was with the RewriteRule redir youcantfindme [R=301,L] .htaccess]


    http://www.make2for1.com/forum/general

    [with the actual .htaccess generated with http://make2for1.com/bb-admin/rewrite-rules.php%5D

    also

    Error 404 – Not found

    Your browser can’t find the document corresponding to the URL you typed in.

    —-

    I have returned the .htaccess back to

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteRule redir youcantfindme [R=301,L]

    </IfModule>

    so you can see the http://make2for1.com/redir work

    If anyone wants to play with this, I’ll happily setup an ftp account. Email juggler@gmail.com

    I have left the changes in place.

    Thanks.

    Doug

    Performed livibetter’s test. mod_rewrite undeniable works.

    mvh: None yet. I’m going to start digging into code and rewrite rules in my spare time. http://make2for1.com/ is about as basic an install of bbpress as can be done. Implementing bbpress shouldn’t be this difficult.

    Obviously mod_rewrite at 1and1 works fine since WordPress pretty permalinks work. I use them at http://realityme.net/ with no problems.

    If I get a solution, I will definitely post it here.

    To eliminate WordPress as a possible problem, I have tried a fresh install of BBPress 0.8.3 in a new directory ~/make2for1_com/ for a throwaway domain I had laying around http://make2for1.com/ The database is a freshly created MySQL 4 db. PHP is using version 4.4.7 The .htaccess uses the code generated with http://make2for1.com//bb-admin/rewrite-rules.php and nothing else. The config is the sample file with all the appropriate blanks filled in and nothing more.

    $bb->mod_rewrite = ‘slugs’; is set.

    Trying to get to a profiles produces a 404. Trying to read a discussion produces a 404. If I change $bb->mod_rewrite = false; it works.

    This is the most recent .htaccess based upon /bb-admin/rewrite-rules.php:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

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

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

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

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

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

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

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

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

    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /profile.php?id=$1&tab=$2 [L,QSA]

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

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

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

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

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

    RewriteRule ^rss/forum/([^/]+)/?$ /rss.php?forum=$1 [L,QSA]

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

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

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

    </IfModule>

    I also tried:

    Options +MultiViews

    And here’s the config.php

    <?php

    // ** MySQL settings ** //

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

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

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

    define(‘BBDB_HOST’, ‘CORRECT’); // 99% chance you won’t need to change these last few

    define(‘BBDB_CHARSET’, ‘utf8’); // If you are *upgrading*, and your old config.php does

    define(‘BBDB_COLLATE’, ”); // not have these two contstants in them, DO NOT define them

    // If you are installing for the first time, leave them here

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

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

    // The full URL of your bbPress install

    $bb->uri = ‘http://talk.tnlotteryresults.com/&#8217;;

    // What are you going to call me?

    $bb->name = ‘Discuss the Tennessee Lottery’;

    // This must be set before you run the install script.

    $bb->admin_email = ‘juggler@gmail.com’;

    // Set to true if you want pretty permalinks, set to ‘slugs’ if you want to use slug based pretty permalinks.

    $bb->mod_rewrite = ‘slugs’;

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

    $bb->page_topics = 30;

    // 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 = -5;

    // 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 = ‘0123456789ab’; // Example: ‘0123456789ab’

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

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

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

    $bb->wp_home = ‘http://new.tnlotteryresults.com&#8217;; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ‘http://new.tnlotteryresults.com&#8217;; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com&#8217;

    //The following allow users from the WordPress blog to mix with the bbpress users

    define(‘USER_BBDB_NAME’,’CORRECT_BUT_DIFFERENT_THAN_ABOVE’);

    define(‘USER_BBDB_USER’,’CORRECT_BUT_DIFFERENT_THAN_ABOVE’);

    define(‘USER_BBDB_PASSWORD’,’CORRECT_BUT_DIFFERENT_THAN_ABOVE’);

    define(‘USER_BBDB_HOST’,’CORRECT_BUT_DIFFERENT_THAN_ABOVE’);

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

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

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

    ?>

    Thanks for gandering!

    I have now installed wordpress2.3 at http://new.tnlotteryresults.com/ and bbpress 0.8.3 at http://talk.tnlotteryresults.com/ They are located in two physically separate directories using two different databases with no .htaccess in any parent directory. Matter of fact, all parent directories between root and each of the sites are empty. Pretty permalinks work on http://new.tnlotteryresults.com/ and fail on http://talk.tnlotteryresults.com/

    I have edited the .htaccess with both methods shown in the installation instructions as well as making sure that I had ‘slugs’ in the config.php

    Why does WordPress implement pretty permalinks so easily and bbpress is so resistant?

    It is confounding that so many people have difficulty with the pretty permalinks.

    In my case, WordPress works great. It’s .htaccess rewrites appropriately. On the same server Drupal uses mod_rewrite successfully and without effort. But I have spent hours upon hours trying different configurations and tricks to get BBPress to have pretty urls and it just won’t work. I do not use GoDaddy. I use 1and1 ( http://www.1and1.com/?k_id=6598272 )

    For so many people to have the same experience and say “wordpress permalinks work but bbpress’ don’t” just cries that there is something flawed in BBPress’ approach to clean urls.

    How’d I overlook this?!

    From https://bbpress.org/documentation/integration-with-wordpress/

    If you would like to pull user information from a different database, define USER_BBDB_NAME, USER_BBDB_USER, USER_BBDB_PASSWORD, and USER_BBDB_HOST.

    My dbs are limited to 100MB and I’ve watched a spam attack add 20-40MB in a heartbeat on WordPress alone. Granted part of the solution is having SpamKarma purge more frequently.

    I was concerned that if I added bbpress to the same database, and if it received any significant traffic, that I would find myself faced with running out of space in my database.

    Naturally, the solution seems to be to have wordpress and bbpress use two separate databases but pull user information from the wordpress db. (Or find a hosting provider that doesn’t limit the db size to 100mb)

    ~/siliconholler.com/forums/

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