Divi WordPress Theme

Topic: PHPbb3 not working with Wordpress  (Read 15926 times)

Offline Harry

  • New Member
  • *
  • Posts: 11
  • iTrader: +0/-0
    • View Profile
PHPbb3 not working with Wordpress
« on: March 06, 2009, 10:56:12 AM »
Hi,

I have recently installed phpbb3 in my directory called "forum" with phpbb-seo mod. In the root directory, I have wordpress installed.

Now, as per seo Mod, I have added the required code in the .htaccess file but when I try to access any forum, it is giving me 404 error page of wordpress. Below is the code I have in .htaccess file:

Code: [Select]
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

    # You may need to un-comment the following lines
    # Options +FollowSymlinks
    # To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
    # Options -MultiViews
    # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
    RewriteEngine On
    # REWRITE BASE
    RewriteBase /
    # HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

    #####################################################
    # PHPBB SEO REWRITE RULES - ADVANCED
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
    # RewriteRule ^forum/forum\.html$ /forum/index.php [QSA,L,NC]
    # FORUM
    RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
    RewriteRule ^forum/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM
    RewriteRule ^forum/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
    # PROFILES THROUGH USERNAME
    RewriteRule ^forum/member/([^/]+)/?$ /forum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
    # USER MESSAGES THROUGH USERNAME
    RewriteRule ^forum/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /forum/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS ADVANCED
    RewriteRule ^forum/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^forum/active-topics(-([0-9]+))?\.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^forum/unanswered(-([0-9]+))?\.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^forum/newposts(-([0-9]+))?\.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # THE TEAM
    RewriteRule ^forum/the-team\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    # FORUM WITHOUT ID & DELIM
    # THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^forum/([a-z0-9_-]+)(-([0-9]+))\.html$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^forum/([a-z0-9_-]+)\.html$ /forum/viewforum.php?forum_uri=$1 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################

I have not made any changes in the code. I have just copied it from ACP. I have double checked all the modification in files that are required for phpbb-seo Mod and all are ok. Now sure what I am doing wrong. Any help to fix this would be appreciated.

Thanks,

Harry
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 604
  • iTrader: +153/-0
    • View Profile
Re: PHPbb3 not working with Wordpress
« Reply #1 on: March 07, 2009, 12:27:02 AM »
Replace your .htaccess rule with following code:
Code: [Select]
   IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>


        # You may need to un-comment the following lines
        # Options +FollowSymlinks
        # To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
        # Options -MultiViews
        # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
        RewriteEngine On
        # REWRITE BASE
        RewriteBase /
        # HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

        #####################################################
        # PHPBB SEO REWRITE RULES - ADVANCED
        #####################################################
        # AUTHOR : dcz www.phpbb-seo.com
        # STARTED : 01/2006
        #################################
        # FORUMS PAGES
        ###############
        # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
        # RewriteRule ^forum/forum\.html$ /forum/index.php [QSA,L,NC]
        # FORUM
        RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
        # TOPIC WITH VIRTUAL FOLDER
        RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
        # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
        RewriteRule ^forum/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
        # TOPIC WITHOUT FORUM ID & DELIM
        RewriteRule ^forum/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
        # PROFILES THROUGH USERNAME
        RewriteRule ^forum/member/([^/]+)/?$ /forum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
        # USER MESSAGES THROUGH USERNAME
        RewriteRule ^forum/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /forum/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
        # GROUPS ADVANCED
        RewriteRule ^forum/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
        # POST
        RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
        # ACTIVE TOPICS
        RewriteRule ^forum/active-topics(-([0-9]+))?\.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
        # UNANSWERED TOPICS
        RewriteRule ^forum/unanswered(-([0-9]+))?\.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
        # NEW POSTS
        RewriteRule ^forum/newposts(-([0-9]+))?\.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
        # THE TEAM
        RewriteRule ^forum/the-team\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
        # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

        # FORUM WITHOUT ID & DELIM
        # THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^forum/([a-z0-9_-]+)(-([0-9]+))\.html$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^forum/([a-z0-9_-]+)\.html$ /forum/viewforum.php?forum_uri=$1 [QSA,L,NC]
        # END PHPBB PAGES
        #####################################################


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

If seems that you are facing the problem due to wordpress rewrite rule (specially RewriteCond %{REQUEST_FILENAME} !-d).

Kailash

Offline Harry

  • New Member
  • *
  • Posts: 11
  • iTrader: +0/-0
    • View Profile
Re: PHPbb3 not working with Wordpress
« Reply #2 on: March 08, 2009, 12:17:34 AM »
wow... it's working now.

Thank you so much :)

Harry

Offline mike.shine

  • Newbie
  • *
  • Posts: 2
  • iTrader: +0/-0
    • View Profile
Re: PHPbb3 not working with Wordpress
« Reply #3 on: December 16, 2009, 05:33:02 PM »
you can find bright to use phpbb3 and word press using a module at http://www.wp-united.com/ . its very handy ;)

Offline shashankm8

  • Newbie
  • *
  • Posts: 1
  • iTrader: +0/-0
    • View Profile
Re: PHPbb3 not working with Wordpress
« Reply #4 on: June 19, 2011, 03:53:53 PM »
this is the only place where i could find solution when i couldn't add a sub directory called forum with in the root directory of WordPress hosted blog
« Last Edit: June 19, 2011, 04:37:02 PM by Kailash »

Offline Davytoth

  • Newbie
  • *
  • Posts: 1
  • iTrader: +0/-0
    • View Profile
Re: PHPbb3 not working with Wordpress
« Reply #5 on: August 23, 2011, 11:44:11 AM »
Oh this is a same problem, no one can use the PHPbb3 with wordpress in any version. But you can add blogs an forums under wordpress by using the phpbb3.
Divi WordPress Theme
Tags: