Info
- 5 posts
- 2 voices
- Started 3 years ago by Anonymous
- Latest reply from Anonymous
- This topic is not resolved
htaccess muwordpress +bbpress
-
- Posted 3 years ago #
I installed muwordpress (with directories not subdomains) and bbpress and integrated them.. I added
RewriteRule ^(.*/)?forum/(.*) forum/$2 [L,R]
to the .htaccess in the wp directory and it worked before i added the code
define('WP_BB', true);
if ( !defined('DB_NAME') ) {
require_once('/home/.atrax/armsteadj/myiowa-news.com/blogs/wp-config.php');
}into the bb-config.php file to get integration to work.. now it gives me a loop error..? any ideas on how to get the htaccess file to forward the directory to it?
Thanks!
James -
- Posted 3 years ago #
opps, I mean when i put
RewriteRule ^(.*/)?forum/(.*) forum/$2 [L,R]
it takes it back to the /blog directory.. but when i put
RewriteRule ^(.*/)?forum/(.*) forum/$2 [R,L]
it gives me the redirect error..
-
- Posted 3 years ago #
Alright, i tested a few more things and it is definitely a problem when i include the wp-config.php file in bb-config.php.. here is the htaccess file im using: if i try and forward it to a directory like "forumtest" with nothing in it it will work perfectly.. and if i take out that require it will load fine as well.. but with errors because it cant find the functions that file defines..
RewriteEngine On
RewriteBase /blogs/#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ /$1/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(forum) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule> -
- Posted 3 years ago #
That wpmu tag is going to be your best friend:
http://bbpress.org/forums/tags/wpmu
Not many people with wpmu experience here.
I know Trent Adams uses it though (he's also on IRC)
Also, wpmu 2.6 is a no-go with bbPress 0.9 because of cookies. -
- Posted 3 years ago #
thanks _ck_,
It seems to be a problem with when you include the wp-config... There must be a check somewhere in one of the files included in it that checks if that has been registered or is a banned blog, and wp-admin must be hardcoded in somewhere to be a safe directory.. i just havent had time to go through and look for where that happens.. been making a bunch of other customizations instead, as this problem can be solved by just using sub-domains..
James
-
You must log in to post.