1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

vbulletin in /forums -> XF showforum breaks if XF is in the root

Discussion in 'XenForo Questions and Support' started by Tigratrus, Feb 13, 2011.

  1. Tigratrus

    Tigratrus Well-Known Member

    Ran into a problem. Our current vB installation is in /forums. Been playing around on the testbed and after moving XF into the web root I found that clicking on a forum name in forumhome (so that it tries to bring up showforum) breaks because the url path is in the format: domain/forums/news-and-announcements.78/ and this conflicts with the REAL /forums directory

    Ok... SO I renamed the vbulletin installation directory from /forums -> /forums_legacy and the problem is solved, right?


    Now the redirect scripts cannot be used because every single vbulletin link is now broken because the new URL is domain/forums_legacy vs. domain/forums. So we'd lose every single link to our site from Google etc.

    We can't be the only ones that have run into this problem with the default routing... Can anyone point me towards a solution? Thx!
  2. James

    James Well-Known Member

    Can't you just rewrite the vBulletin scripts using the new /forums_legacy in place of /forums?
  3. Tigratrus

    Tigratrus Well-Known Member

  4. James

    James Well-Known Member

    That's true, and I don't know extensive .htaccess configuration but you can wrap conditionals in .htaccess...

    I'll take a look at Kier's redirection scripts and see if I can come up with something, though don't hold your breath.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You could turn off friendly URLs in xenForo. Then xenForo's forums path won't conflict with the forums directory where vB resides.

    Admin CP -> Home -> Options -> Search Engine Optimisation (SEO) -> Use Full Friendly URLs

    Then remove the .htaccess file.
  6. Tigratrus

    Tigratrus Well-Known Member

    Yes, but we really want to stay with the Full Friendly URLs.
    I'm guessing that we're not the only folks that had vBulletin in a "forum" or "forums" folder and want to run XF at the root?
  7. Dean

    Dean Well-Known Member

    We are using Full Friendly URLs.
    We used to be at mysite.com/forums and now we are at mysite.com

    Works for us. 310config.php, forumdisplay.php, index.php, showpost.php, showthread.php need to be in the mysite/forums directory... that is all we have in the mysite.com/forums directory.
  8. Tigratrus

    Tigratrus Well-Known Member

    Dean, thanks for the reply. Unfortunately, on ours it throws an error if I change it back to /forums. It's not a question of what's IN the directory, AFAICT it's simply a conflict with having a real /forums folder when you try to go to the show forum page for any individual forum.

    The weird thing is that the error is *STILL* referencing files in /community when we haven't had that folder since we moved XF to the root several days ago:

    Warning: require(/home/ikeafans/public_html/community/library/XenForo/Autoloader.php) [function.require]: failed to open stream: No such file or directory in /home/ikeafans/public_html/forums/forumdisplay.php on line 11
    Fatal error: require() [function.require]: Failed opening required '/home/ikeafans/public_html/community/library/XenForo/Autoloader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ikeafans/public_html/forums/forumdisplay.php on line 11
    Originally we were getting that error all over the place after the move, rebooted the server to clear out any opcode cache, and it seemed to have gone away except for this instance.
  9. fattony69

    fattony69 Well-Known Member

    Was this ever solved? I just got this issue.
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  11. gordy

    gordy Well-Known Member

    Note: This happened to me as well after moving to a new host.

    Be sure to update the 301config.php with any new paths. ;) It was driving me fruit loops!
    Jake Bunce likes this.

Share This Page