Setting a "Page" as your "Home" Page - Is it possible.

Digital Doctor

Well-known member
Based on these posts:

Can we set a page to use as a homepage instead of the forum home?​
I see this question hasn't been answered :). I have the same question... when I go to the example page now, it sits/is accessible through a link in the 'Test and examples' forum. But I have no use for that... what I really need is exactly this functionality of static pages for my site. Not the forum. So, when visitors click on [Home], they are presented with exactly this. Is this possible?

Yes it is. Don't add the page to the forum list, and point your homepage url to this page.

What is a Page ? - A Page is a Page as defined here: Pages Example: example-page

I get the feeling you can create a Page that serves as your Home Page. Home page is defined as what shows up when someone goes to www.site.com.

Questions: Do you get redirected to www.site.com/pages/created-page ? (does this redirect have to be there?) When people go to my site www.site.com I want the "Home" tab to be selected and I want my custom Page there.

Anyone accomplish this with Pages ?
 
Yes, xenForo needs to be in a subdirectory if you are going to use that index.php file in the web root. I don't know how to setup that redirect any other way.
Instead of index.php for the home page, can you name it home.php and add to the htaccess file based on post 19?

DirectoryIndex home.php index.php
 
To answer the thread title, it is now possible to set a Page as the home page without it showing as being in the forum structure, thanks to Shadab: http://xenforo.com/community/threads/library-set-your-own-route-controller-as-homepage.10156/

I downloaded that but don't know how to get it to work. He says to add this:

PHP:
    $config = new Zend_Config(array(
        'routePrefix'     => 'portal',
        'controllerClass' => 'EWRporta_ControllerPublic_Portal',
        'majorSection'    => 'portal'
    ));

But he doesn't say where to add it. I've made the other edits to my /Link.php but there's no change.
 
Back
Top Bottom