On my other website simply His, I decided to add a private forum. Since I’m so totally in love with WordPress, I decided to try out bbPress — made by the same techie people
Here are some notes for a few little problems I ran into while installing. For the most part it was as painless as installing WordPress.
When you want to run a program from a subdirectory under the WordPress directory, the subdirectory may give you a 404 error or similar. I had tried to access the forums and could get to the first page, but anything past that returned me to my blog with a 404 error page. Here’s what I had to do to get it to show up correctly.
In my main WordPress directory, I had to edit the .htaccess file (which you can do with a text editor like Notepad or HTML Editor):
# These are the standard WordPress Rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/forums(.*)$
RewriteRule . /index.php [L]
In this case, I had to add the fourth line above. You’ll need to change the ^/forums(.*)$ to reference whatever directory you put there. Like if you have photo gallery software running in /gallery — you’d put ^/gallery(.*)$ instead of the forums. This will tell WordPress to allow access to the directory below it. You’re still not done.
In the forums directory, I had to add an .htaccess file. In the bbPress directions, it lists this as the code to put in that file:
Options +MultiViews
You’ll just have to try this. If it doesn’t work, then you need to access the /bb-admin/rewrite-rules.php file to get the needed lines you’ll put in the .htaccess file. When I accessed this file, it gave me the following lines:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /forums/ RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forums/forum.php?id=$1&page=$2 [L,QSA] RewriteRule ^forum/([^/]+)/?$ /forums/forum.php?id=$1 [L,QSA] RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /forums/topic.php?id=$1&page=$2 [L,QSA] RewriteRule ^topic/([^/]+)/?$ /forums/topic.php?id=$1 [L,QSA] RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /forums/tags.php?tag=$1&page=$2 [L,QSA] RewriteRule ^tags/([^/]+)/?$ /forums/tags.php?tag=$1 [L,QSA] RewriteRule ^tags/?$ /forums/tags.php [L,QSA] RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /forums/profile.php?id=$1&page=$2 [L,QSA] RewriteRule ^profile/([^/]+)/([^/]+)/?$ /forums/profile.php?id=$1&tab=$2 [L,QSA] RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /forums/profile.php?id=$1&tab=$2&page=$3 [L,QSA] RewriteRule ^profile/([^/]+)/?$ /forums/profile.php?id=$1 [L,QSA] RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /forums/view.php?view=$1&page=$2 [L,QSA] RewriteRule ^view/([^/]+)/?$ /forums/view.php?view=$1 [L,QSA] RewriteRule ^rss/?$ /forums/rss.php [L,QSA] RewriteRule ^rss/forum/([^/]+)/?$ /forums/rss.php?forum=$1 [L,QSA] RewriteRule ^rss/topic/([^/]+)/?$ /forums/rss.php?topic=$1 [L,QSA] RewriteRule ^rss/tags/([^/]+)/?$ /forums/rss.php?tag=$1 [L,QSA] RewriteRule ^rss/profile/([^/]+)/?$ /forums/rss.php?profile=$1 [L,QSA] </IfModule>
Hopefully this will help you to avoid the same problems.