Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: “next page” link redirects to WordPress login page

I installed bbPress in the root of my website and WordPress is installed in the directory “/w”. Because I use WordPress functions in my bbPress theme I call the wp-blog-header.php in the bb-config.php with the following code:

if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST')) {

define('WP_USE_THEMES', false);

include_once( '/home/forum/test/html/w/wp-blog-header.php' );

header("HTTP/1.1 200 OK");

header("Status: 200 All rosy"); }

My .htaccess settings for WordPress:

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /w/

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /w/index.php [L]

</IfModule>

# END WordPress

My .htaccess settings for bbPress:

# BEGIN bbPress

Options -MultiViews

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

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

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

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

RewriteRule ^forum/?$ / [R=302,L,QSA]

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

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

RewriteRule ^topic/?$ / [R=302,L,QSA]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^.*$ /index.php [L]

</IfModule>

# END bbPress

I hope you can help me. Thanks!!

Skip to toolbar