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

XF 1.3 How to set /forum as main index

Discussion in 'XenForo Questions and Support' started by xIsabel38, Mar 2, 2014.

  1. xIsabel38

    xIsabel38 Well-Known Member

    How do I point my main site (MYSITE.com) to my forum (MYSITE.com/forum) so that when a user goes to the main URL they are sent directly to the forum instead?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Is there any particular reason why you have installed in /forum rather than the root?

    Unless you plan to use the root for something, I would recommend moving the forum to it.
     
  3. xIsabel38

    xIsabel38 Well-Known Member

    I have a homepage under construction but since it's still being worked on, I'd rather have it not show at all.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    The simplest then would be an .htaccess rewrite:
    Code:
    RewriteEngine On
    RewriteRule ^$ /forum [L,R=301]
     
  5. xIsabel38

    xIsabel38 Well-Known Member

    lol well nvm, I don't even have a program to open that file. Probably a sign that I should just leave it alone before I mess something up.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    You can edit .htaccess using a simple text editor such as Notepad.
     
    xIsabel38 likes this.
  7. Mouth

    Mouth Well-Known Member

    xIsabel38 likes this.
  8. FredC

    FredC Well-Known Member

    Whats the difference between the .htaccess and a index.php file?
    Code:
    <?php
    header('Location: http://your-domain.com/community/portal/', true, 301);
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Some light reading here ;)

    http://uk1.php.net/manual/en/function.header.php

     
  10. FredC

    FredC Well-Known Member

    Any real advantages/disadvantage of using one over the other then?
     

Share This Page