Jump to content

How can I set a different page than the one at the top of the tree as "home"?


titanium
 Share

Recommended Posts

Hi titanium,

You could do a redirect to "start" or output the same content as the start page.

So in your home template:


$p = $pages->get('/')->children('name=start');
if ($p->id) {
  // Redirect
  $session->redirect($p->url);
  // or render the start page
  echo $p->render();
}

May I ask you why you need this behaviour?

The second option is not good for SEO, because you have two urls with the same content.

Link to comment
Share on other sites

The second option is not good for SEO, because you have two urls with the same content.

No problem if there's nothing linking to the second page. But I also don't see the point of doing this.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...