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.

Installing SilverStripe /

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

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

change path for admin


Reply


2 Posts   578 Views

Avatar
Futureweb

Community Member, 233 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, 34 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