Different url segment for the homepage

how do I change the http://tttt.com/home to something different like http://tttt.com/custom-home-page-segment

Director::addRules(100, array( 
   '' => '->testing', 
));

I found this on old forum which may work for SilverStripe 3 but doesn’t work in 4. Any ideas guys.

Steve

I have the same issue, no answers ?

You can set the URL segment with the following in one of your yml config files:

SilverStripe\CMS\Controllers\RootURLController:
  default_homepage_link: 'my-custom-url'

Then update the URL segment of the existing home page in the CMS, and then run a dev/build?flush

1 Like

Perfect, it works like a charm, thanks a lot!