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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

change path for admin


Go to End


2 Posts   1158 Views

Avatar
JonShutt

Community Member, 244 Posts

20 December 2011 at 12:41pm

Hi, i'm just installing a site on a freeparking.co.nz address, and 'mysite.com/admin' is already being use by their control panels.

I've looked at this old post http://www.silverstripe.org/archive/show/3550 - but my config file don't have as much in, and changing what is there doesn't work.

I'm using the latest release of silverstripe 2.4. And i've read older posts saying this would configurable in 2.4, but i can't find anything to say how it's done.

any help appreciated.

cheers

Avatar
Lexandclo

Community Member, 55 Posts

19 January 2012 at 4:03am

Hi

You could try changin this -

Director::addRules(50, array(
'processes//$Action/$ID/$Batch' => 'BatchProcess_Controller',
'admin/help//$Action/$ID' => 'CMSHelp',
'admin/bulkload//$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
'admin/cms//$Action/$ID/$OtherID' => 'CMSMain',
'PageComment//$Action/$ID' => 'PageComment_Controller',
'dev/buildcache/$Action' => 'RebuildStaticCacheTask',
));

TO This

Director::addRules(50, array(
'processes//$Action/$ID/$Batch' => 'BatchProcess_Controller',
'myadmin/help//$Action/$ID' => 'CMSHelp',
'myadmin/bulkload//$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
'myadmin/cms//$Action/$ID/$OtherID' => 'CMSMain',
'PageComment//$Action/$ID' => 'PageComment_Controller',
'dev/buildcache/$Action' => 'RebuildStaticCacheTask',
));

And the new admin would be "myadmin"

Let me know if this works

Darren