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

Server Admin & CMS Admin Same address

Go to End

9 Posts   2837 Views


11 January 2009 at 12:58pm Community Member, 1 Post

I'm on a shared server and we log in to the server control panel via
So, now I don't have access to SilverStripe CMS admin control panel. (which is the same)
Where can I find and change the address for the admin log in page?

Thanks, any help appreciated.


11 January 2009 at 2:29pm Community Member, 17 Posts

Check this out:


12 January 2009 at 5:15am Community Member, 4 Posts

Thank you very much!
But I can't figure our where to insert the statement in the file?

Director::addRules(10, array('cms' => 'CMSMain', ));

Does the above look right? And where? May be someone could give me an example.

Thanks in advance to anyone for help.

*URL rules for the CMS module
* @package cms
Director::addRules(50, array(
   'processes/$Action/$ID/$Batch' => 'BatchProcess_Controller',
   'silverstripe' => '->admin',
   'cms' => '->admin',
   'admin/statistics/$Action/$ID' => 'StatisticsAdmin',
   'admin/security/$Action/$ID/$OtherID' => 'SecurityAdmin',
   'admin/help/$Action/$ID' => 'CMSHelp',
   'admin/newsletter/$Action/$ID' => 'NewsletterAdmin',
   'admin/reports/$Action/$ID' => 'ReportAdmin',
   'admin/assets/$Action/$ID' => 'AssetAdmin',
   'admin/comments/$Action' => 'CommentAdmin',
   'admin/ReportField/$Action/$ID/$Type/$OtherID' => 'ReportField_Controller',
   'admin/bulkload/$Action/$ID/$OtherID' => 'BulkLoaderAdmin',
   'admin/ImageEditor/$Action' => 'ImageEditor',
   'admin/$Action/$ID/$OtherID' => 'CMSMain',
   'unsubscribe/$Email/$MailingList' => 'Unsubscribe_Controller',
   'PageComment/$Action/$ID' => 'PageComment_Controller'



12 January 2009 at 7:30am Community Member, 17 Posts

I believe that that code snippet goes in your site's config file. If you're the default BlackCandy install, this file will be located in the folder "mysite". If you selected to not use the theme, it will be in the "tutorial" folder. You should be able to place it anywhere in there.


12 January 2009 at 7:35am Community Member, 4 Posts

I understand it is located in the config file, but where do I put the line, Director::addRules(10, array('cms' => 'CMSMain', )); in the existing file? Yes I am using the Blackcandy install.

Sorry I'm so stupid. ;)


12 January 2009 at 8:19am (Last edited: 12 January 2009 8:20am), Community Member, 712 Posts

Your site configuration lives at /mysite/_config.php

I'm not sure that this will solve your problem. There is a lot of hard coded behaviour (for example, in the cms javascript) that will still have the /admin/ address. Changing the director rule might cause some odd behaviour, or at least, only allow very buggy operation.

It is an issue that has been identified and the first steps have been taken to make it truely agnostic, but for now, you might have to see if your ISP can change their admin path for you.


12 January 2009 at 3:00pm Community Member, 4 Posts

I agree, it isn't a fix. Guess I'll stay tuned for one, unless I can find another good program for my situation.
Thanks again.


13 January 2009 at 7:19am Community Member, 4 Posts

I just got an idea from looking at CMS Made Simple's install. They use too. With them you can access by going to:

Can something like this be done with Silverstripe?


Go to Top