Jump to content

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


Recommended Posts

Posted

Is there a possibility to call a different page other than the one at the top of the tree if the domain start index is called?

for example, if given the following tree:

/

-- bla

-- bla1

-- start

http://www.mydomain.com/ should call the third page, "start" in this case. By default, "/" is called.

How can I achieve this?

Posted

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.

Posted
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.

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
  • Recently Browsing   0 members

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