WordPress.org

Ready to get started?Download WordPress

Forums

WordPress and phpBB rewrite conflict (2 posts)

  1. mdvaldosta
    Member
    Posted 8 years ago #

    I've decided to use WordPress in the root directory of my site. In the /forums/ directory I have phpBB installed. I'm using modrewrite for friendly url's for the forums, and when I set WordPress to use friendly url's as well, it affects the forums they will not display properly when going into rewritten url's (actually it shows a scrambled version of the wordpress blog). Also, the some of the categories in on the wordpress sidebar go missing... really weird.

    What's the best solution for this problem, I'm dead set on using friendly url's for both directories.

    Here is my htaccess for the forums:

    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /

    RewriteCond %{HTTP_HOST} !^www.example\.com [NC]
    RewriteRule ^(.*) http://www.example.com/$1 [QSA,R=301,L]

    RewriteRule ^forums/.+/([^/]+\.html)$ /forums/$1 [R=301,L]
    RewriteRule [.]*-vf([0-9]*) /forums/viewforum.php?%{QUERY_STRING}&f=$1
    RewriteRule [.]*-vp([0-9]*) /forums/viewtopic.php?%{QUERY_STRING}&p=$1
    RewriteRule [.]*-vt([0-9]*) /forums/viewtopic.php?%{QUERY_STRING}&t=$1
    RewriteRule [.]*-vc([0-9]*) /forums/index.php?%{QUERY_STRING}&c=$1
    RewriteRule [.]*-ac([0-9]*) /forums/album_cat.php?%{QUERY_STRING}&cat_id=$1
    RewriteRule [.]*-at([0-9]*) /forums/album_thumbnail.php?%{QUERY_STRING}&pic_id=$1
    RewriteRule [.]*-apic([0-9]*) /forums/album_pic.php?%{QUERY_STRING}&pic_id=$1
    RewriteRule [.]*-apm([0-9]*) /forums/album_picm.php?%{QUERY_STRING}&pic_id=$1
    RewriteRule [.]*-full-asp([0-9]*) /forums/album_showpage.php?full=&pic_id=$1
    RewriteRule [.]*-asp([0-9]*) /forums/album_showpage.php?%{QUERY_STRING}&pic_id=$1
    RewriteRule [.]*-aper([0-9]*) /forums/album_personal.php?%{QUERY_STRING}&user_id=$1

  2. mdvaldosta
    Member
    Posted 8 years ago #

    I want to simplify this:

    WordPress is rewriting my already rewritten url's located in another subdirectory. I've tried WordPress in root, in it's own directory, with other fixes I've searched for, etc. Nothing works. WordPress is not obeying .htaccess like it should... why is it trying to rewrite url's it's not supposed to?

Topic Closed

This topic has been closed to new replies.

About this Topic