Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Changing default homepage

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 2124 Views
  • gakenny
    Avatar
    Community Member
    153 Posts

    Changing default homepage Link to this post

    Hey!

    Just a quick question... Does anyone know how to change the default homepage from home to another?

    Cheers,

    Gary

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Changing default homepage Link to this post

    Add the following to your _config.php. It will tell the system how to deal with the URL '' - ie, the root domain. The '->' at the beginning of the string tells it to redirect instead of looking for a controller of that name.

    Director::addRules(100, array(
       '' => '->relative-page-url/',
    ));

    2124 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.