titanium Posted April 16, 2013 Share Posted April 16, 2013 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? Link to comment Share on other sites More sharing options...
Wanze Posted April 16, 2013 Share Posted April 16, 2013 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 More sharing options...
diogo Posted April 16, 2013 Share Posted April 16, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now