• My website PokerTrikz.com has WordPress installed to the root. WordPress is my main CMS and I run most everything through it. I also have a vBulletin forums installed to /forums/.

    Whenever I visit PokerTrikz.com/forums/ it gives me a WordPress layout with a 404 error. I’ve tried everything I could find on the WP and VB forums and no luck yet.

    I’ve tried a few different ways to tell WordPress to ignore /forums/ but nothing has worked. Here is the current htaccess
    WordPress htaccess

    Options +FollowSymLinks
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteRule ^forums - [L,NC]
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    I’ve tried this and a few others I don’t remember right now.
    RewriteRule ^forums/.*$ - [PT]

    Here is the htaccess in the /forums/ folder if that matters. I’ve tried to change a few things on this one as well like enabling RewriteBase, but that didn’t do it.

    /Forums htaccess

    Options +FollowSymLinks
    
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /forums/
    
    RewriteCond %{HTTP_HOST} !^www\.pokertrikz\.com
    RewriteRule (.*) http://www.pokertrikz.com/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Do this for WP:

    Options +FollowSymLinks
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    WordPress, by default, will ignore any actual folders or files. So long as you’ve never had a page on your site called ‘forums’, this will work.

    Thread Starter Trikkur

    (@trikkur)

    That did not work. I’m still being redirected to a WordPress 404 page. I have never had a page called forums.

    This actually did work a while ago, but I removed the vbulletin files and re-uploaded some new ones and now it won’t work. Since hten, I have done a system back up, cleared the site and reuploaded everything, dropped the databases and recreated new ones. Tried every ignores option for both htaccess files.

    I am just totally stumped and have absolute no clue what is going wrong. I have another directory similar to /forums/ that I can browse to just fine and run the software just fine. The forums just refuse to work the same way.

    Thread Starter Trikkur

    (@trikkur)

    Ok, I managed to get it working and wanted to update this in case anyone else is having the same problems. I deleted the entire /forums folder and deleted the database. I created a new database and installed all the vbulletin files. WordPress let me browse to /forums this time and I was able to reinstall everything and then restore it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ignore vBulletin directory with WordPress site’ is closed to new replies.