Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » change path for admin

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

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

Page: 1
Go to End
Author Topic: 547 Views
  • Futureweb
    Avatar
    Community Member
    232 Posts

    change path for admin Link to this post

    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

  • Dazman1
    Avatar
    Community Member
    30 Posts

    Re: change path for admin Link to this post

    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

    547 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.