Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Changing default homepage


Go to End


2 Posts   3889 Views

Avatar
gakenny

Community Member, 153 Posts

26 January 2007 at 3:44pm

Hey!

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

Cheers,

Gary

Avatar
Sam

Administrator, 690 Posts

26 January 2007 at 4:47pm

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/',
));