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

Renaming index.php to something else?

Discussion in 'XenForo Questions and Support' started by Kevin, Oct 9, 2010.

  1. Kevin

    Kevin Well-Known Member

    This is really a 'planning for the future' question.... ;)

    I'm looking at putting XF in the root forum of my production site, as opposed to a subforum (eg: /forums or /xf). However, in anticipation of having a portal page in the future in the root also would I be able to rename the XF 'index.php' to something else?
  2. Blandt

    Blandt Well-Known Member

    I'm just curious as to why?
    Perhaps there is a better way to achieve what you want without renaming anything
  3. Kevin

    Kevin Well-Known Member

    Because if, as mentioned, I put a portal in the same folder then the portal would be named index.php instead. ;) In the vB world there is setting in the vB ACP where you can specify the name of vB home page so that you can rename it to anything you want and all of your links would still work fine.
    Possibly through .htaccess or something else but it'll be easier to be able to rename it.
    Blandt likes this.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Would it not be better to have the portal page as home.php?

    That's how I have it configured on my site at the moment.
  5. Kevin

    Kevin Well-Known Member

    Not if I want the portal page to the landing page when somebody goes http://mysite.com.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Mine works exactly like that now - the portal/home page opens with the standard domain url and if it is appended with /home.php
  7. Kevin

    Kevin Well-Known Member

    But as mentioned the portal page would be the default page. Having to specify the file name as part of the URL defeats the goal.
  8. lmq

    lmq Member

    I think Brogan is trying to say he configured the server to use home.php as the standard page if no file name is appended, not index.php. That should be one line in your .htaccess (and is the way I would do this, too, btw).
  9. Kevin

    Kevin Well-Known Member

    Thanks for the info' but to be frank I'll just leave this open to see what the devs say. The ability to rename index.php to something else is used quite often in the vB world and makes life much easier when working with portals & other 3rd party software in the same folder.
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  11. Erik

    Erik Well-Known Member

    Have you tried just renaming it and seeing if it works? You would also have to change the name in .htaccess if you're using SEO-friendly URLs. :)
  12. Digital Doctor

    Digital Doctor Well-Known Member

    any updates on this thread ?

Share This Page