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

XF 1.2 Help with vb4 redirect to directory

Discussion in 'Installation, Upgrade, and Import Support' started by Mr Lucky, Nov 15, 2013.

  1. Mr Lucky

    Mr Lucky Well-Known Member

    I am trying to redirect my vbulletin4 forum. The old forum was in the root, the new one is in the directory /forum/

    ie vbulletin forum index= domain.com/forum.php
    xenforo forum index = domain.com/forum/index.php

    So I have followed the instructions to put the path in 301config.php and the redirect is taking place but not into the folder. ie I get a 404 error, but if I manually insert /forum/into new URL it works.

    I have installed The vb redirect script and it is not redirecting into the directory level

    Code:
    $fileDir = '/data03/username/public_html/websitefiles/forum/';
    (where domain.com is pointing to the root directory /websitefiles/)

    I have also tried adding .htaccess:

    Code:
    RewriteRule ^/showthread.php /forum/showthread.php
    RewriteRule ^/forumdisplay.php /forum/forumdisplay.php
    But I have to admit at this stage it's trial and error so i hope someone can help me speed up the process

    I hope this makes sense, can anyone please help?
     
  2. Mike

    Mike XenForo Developer Staff Member

    If the redirect works but goes to the wrong URL, then you need to make sure that the "Board URL" option in XenForo is correct. It doesn't look like it is.
     
    Mr Lucky likes this.
  3. Mr Lucky

    Mr Lucky Well-Known Member

    Thank you that was it!

    I had moved the forum into the /forum/ directory but not changed the board URL
     

Share This Page