4571 Posts in 1383 Topics by 1376 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 310 Views |
-
change path for admin

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
-
Re: change path for admin

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
| 310 Views | ||
|
Page:
1
|
Go to Top |


