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

XF 1.3 It's 1:30am, can't figure out route filters

Discussion in 'XenForo Questions and Support' started by Ludachris, May 18, 2014.

  1. Ludachris

    Ludachris Well-Known Member

    I'm using XenPorta. My XF installation resides in the /forum/ directory. I want users to type in our domain http://www.mydomain.com and see the XenPorta portal page. How do I do it? Apparently the setting was removed from XenPorta because it's default functionality in XF now, but I can't figure out how do make it do this.

    I'm trying to do this in order to turn my site on after an import with the new portal page being what everyone sees.
     
    Last edited: May 18, 2014
  2. RobParker

    RobParker Well-Known Member

    Options
    Basic board info
    Index page route
    portal/ (maybe forums/portal/ in your case)

    You don't need to do anything to the route filters.
     
  3. Ludachris

    Ludachris Well-Known Member

    Just to add more info - I was previously using vBadvanced for my old vB homepage.
     
  4. Ludachris

    Ludachris Well-Known Member

    I'll try that... but when I change that to portal/ all it does is make it so the forums index page shows the portal page. That's not what I'm after. I want the forums index page to be the forums index page. I want my domain index page to be the portal page. My forums are in /forum/.
     
  5. Ludachris

    Ludachris Well-Known Member

    Please someone help, this is the last step before I turn on the site after being off for 18 hours.
     
  6. Mike

    Mike XenForo Developer Staff Member

    If you installed XenForo within a forums/ directory, everything will be within that directory. If you want a part of it to be at the root, you need to move the installation.
     
  7. Ludachris

    Ludachris Well-Known Member

    Or set up a redirect I guess. Any idea what the fastest way to move everything from /forum/ to root would be via ssh?
     
  8. Ludachris

    Ludachris Well-Known Member

    Reading Brogan's FAQ on it... wonder if I should try to do it tonight before I open the site.
     
  9. Ludachris

    Ludachris Well-Known Member

    Screw it, I'm calling the host to see if they'll move it all for me :) Might as well take advantage of 24 hour support instead of fumbling around trying to do it myself and then screw something up.
     
  10. Ludachris

    Ludachris Well-Known Member

    So I've had the host working on this for 4 hours now... they're first creating a backup copy of the /forum directory (where all the XF files are) using rsync before they use rsync to copy everything in /forum up a directory so that it's in root - they suggested rsync instead of a move for data integrity.

    Is there a faster way to do this without sacrificing data integrity? For example, seeing as how I'm using the Big Board Importer, could I just move Export.php to the root directory and run it there to move all the attachments and avatars over that way? Then just use rsync for the rest of the files? Or would I have to re-run all of the export and import steps and rebuild caches again? I don't want to rebuild caches again, that took forever.
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    It's a simple process moving an installation - move the files and update the Board URL.

    That's it.
     
  12. Ludachris

    Ludachris Well-Known Member

    So rsync is overkill? I'll ask them to just move the files instead of using rsync then. Just don't want to have to deal with data loss at this late stage of the game.
     
  13. borbole

    borbole Well-Known Member

    Moving the forum files/folder will not cause any loss of data. All you have to do is upload the forum files/folder to your pc and then re-upload them to your server space, then straighten out the board url and you should be all set.
     
  14. Ludachris

    Ludachris Well-Known Member

    Downloading them and uploading them again would likely take just as long as using rsync. I was thinking in terms of just moving them within the server, not doing a download and upload. That tends to be faster.
     
  15. Brogan

    Brogan XenForo Moderator Staff Member

    There is no need to use a PC as an interim step - just move them on the server from the current directory (/forum) to the root.
     
    borbole likes this.
  16. Ludachris

    Ludachris Well-Known Member

    I'll do that Brogan, thanks.
     
  17. Ludachris

    Ludachris Well-Known Member

    The files are moved, but I can't get into the ACP to change the Board URL.... getting errors trying to access the site now. Can I edit the Board URL setting directly in the db? I obviously should have changed the setting first. Now what can I do?
     
  18. Brogan

    Brogan XenForo Moderator Staff Member

    The board URL in the ACP won't have anything to do with that.
    It is primarily for links in emails.

    What are the errors?
     
  19. Ludachris

    Ludachris Well-Known Member

    I just got access to ACP via the backup copy of the /forum/ directory I made. I made the change to the Board URL to my domain name with no trailing slash. Now I'm getting a cache error - cache_dir is not writable. The error looks like it's still pointing to the /forum/ dir though.
     
  20. Ludachris

    Ludachris Well-Known Member

    Alright, I just renamed the forum dir so that it isn't referenced. When I do that and refresh the domain here's the error I get:

    PHP:
    Warning: require(/home/mysite/public_html/forum/library/XenForo/Autoloader.php) [function.require]: failed to open streamNo such file or directory in /home/mysite/public_html/forum/index.php on line 6

    Fatal error
    : require() [function.require]: Failed opening required '/home/mysite/public_html/forum/library/XenForo/Autoloader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php'in/home/mysite/public_html/forum/index.php on line 6
     

Share This Page