How do I make pretty URLs work in BBpress?
April 23, 2008 1:24 PM   Subscribe

How on earth do I get pretty URLs to work in BBpress, when in a subdirectory of a Wordpress install?

Right. Being more than a little bit out of my technical depth here, I suspect I'm missing something obvious.

I'm running a BBpress install in a subfolder of my word-press installation. The two are otherwise well integrated, except Wordpress does gorgeous, pretty URLs, but BBpress does not.

Apparently, I'm not the only who has had this problem. I've tried this, these and some farting around of my own. Nothing has worked, and I'm at my wits end on this. I change the .htaccess, upload it, turn on pretty URLs in BBpress, and bang - 404s across the board. It generates the URLs just fine, but it doesn't interpret them.

I think the problem might be that the .htaccess in my Wordpress folder overwriting the .htaccess I use in the BBpress subfolder. But really, I have no idea what I'm talking about. I use 1and1 as my host, if that makes a difference.

Has anyone else licked this problem? Is there a tutorial that my search skills haven't found? That I've missed in my misery? I will weep with joy when I find a solution to this one. Normally I can figure this stuff out with a little investigation and experimentation.
posted by generichuman to Computers & Internet (4 answers total) 1 user marked this as a favorite
 
You need a separate .htaccess file in the bbpress subdirectory. Mine looks like this:

# BEGIN BBPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum/
Options +MultiViews
</IfModule>
# END BBPress

posted by maniactown at 1:35 PM on April 23, 2008


Response by poster: Yeah, I tried that, too. Same problem.

The .htaccess in the Wordpress folder looks like this:


# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress


I've tried just about every combination of .htaccess file I can find for the BBpress install, as well as the .htaccess in the WP folder. No dice.

(For what it's worth, everything is also underneath another installation in my root directory. Bad early decision. I wonder if the .htaccess there could be breaking something?)
posted by generichuman at 2:16 PM on April 23, 2008


Try configuring the .htaccess in the WordPress folder to ignore the BBPress subfolder a la "Configuring .htaccess to ignore specific subfolders"

The key seems to add:
RewriteCond %{REQUEST_URI} !^/yourDirectoryName

before this line:
RewriteCond %{REQUEST_FILENAME} !-f

replacing yourDirectoryName with the name of your BBPress subfolder
posted by junesix at 4:00 PM on April 23, 2008


Response by poster: I'll try that tonight junesix, thanks.
posted by generichuman at 11:32 PM on April 23, 2008


« Older How do I get this scabby dry skin to heal?   |   How do I get a website to stop using our property? Newer »
This thread is closed to new comments.