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

splash page

Discussion in 'XenForo Questions and Support' started by masterchief, Mar 17, 2011.

  1. masterchief

    masterchief Well-Known Member

    I am interested in setting up a splash page via index.php and then have XenForo activated via splash page. How can this be done. My install is in the ROOT.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can't have two files named index.php in the same directory/root.
    It would have to be something like home.php.

    Additionally, I believe someone else had problems trying to get this to work as the forum index was being loaded by default.

    I'll see if I can find the thread.

    Edit: Here's the thread, not the same but it discusses the same issue: http://xenforo.com/community/threads/installing-xenforo-in-root-dir-question.12643/
     
  3. masterchief

    masterchief Well-Known Member

    I was thinking index.php could be renamed to home.php

    splash page would be new index.php

    OR

    does it have to be that splash page is named home.php????
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. masterchief

    masterchief Well-Known Member

    I Just read that in the FAQ.... thank you.

    So.. How do I change home.php to become startup file for my site??

    I can then have index.php asigned to link....
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

  7. masterchief

    masterchief Well-Known Member

    works great! I am gonna play around with this on my test install and then provide update. thank you again.

    UPDATE: I now have home.php loading up... when I click on link to index.php, the home.php reloads itself
     
    James likes this.
  8. James

    James Well-Known Member

    Use DirectoryIndex home.php in your htaccess.
     
  9. masterchief

    masterchief Well-Known Member

    UPDATE: I now have home.php loading up... when I click on link to index.php, the home.php reloads itself.

    As I am testing this on WAMP, probably need to work it out on my live site.
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    Yup.

    That's pretty much what the other guy on that thread I linked to experienced.
     
  11. masterchief

    masterchief Well-Known Member

    XenForo is adhering to setting in the htaccess, it is never getting to the index.php

    going to website from inside the ACP takes me to the home.php page
     
  12. bambua

    bambua Well-Known Member

    One way you could get around this would be to have xenforo in a sub directory instead of your website root. That way both directories can have index.php your splash page just clicks through to /whateverfolder/index.php
     
  13. masterchief

    masterchief Well-Known Member

    understand... but it should not have to be that way.... provide option of entering index.php as part of homepage URL is the way to go, IMHO.
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

    That's exactly why I installed mine in /community :)
     
  15. masterchief

    masterchief Well-Known Member

  16. Brogan

    Brogan XenForo Moderator Staff Member

    Try changing DirectoryIndex home.php to DirectoryIndex home.php index.php

    I did say that there are problems with getting this to work.
    Having multiple index files in the same directory is always a challenge to get working properly.
     
  17. masterchief

    masterchief Well-Known Member

    This is what I have done.
    1. Removed XenPorta as index controller
    2. Changed link on my splash page to go to http://www.domain.com/portal

    UPDATE:

    splash link to portal works fine... forums tab is now linked to home.php file, but all the min-tabs work as expected.
    http://www.domain.com/forum brings up a 'requested page not found error'

    I have two Home tabs in the navbar.
     
  18. bambua

    bambua Well-Known Member

    I don't think anyone was offended. Even being 2 seperate entities, when your webserver sees the the .htaaccess file it intercepts the call and forwards it, XenForo isn't doing that. A splash screen option within XF would be nice but we always have other options :D
     
  19. masterchief

    masterchief Well-Known Member

    such as??
     
  20. masterchief

    masterchief Well-Known Member

    that just uses second file if first one does not exist.. not for multiple files
     

Share This Page