Ignore vBulletin directory with WordPress site
-
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 htaccessOptions +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 (.*) https://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]
- The topic ‘Ignore vBulletin directory with WordPress site’ is closed to new replies.