If you use a portal and set that Index Route option to that (or use a potential setting of the portal to be the index), it will probably work the way you want automatically. (XenForo needs to be installed in the root then.)