Jump to:

4952 Posts in 16066 Topics by 1489 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Server Admin & CMS Admin Same address

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

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

Page: 1 2
Go to End
Author Topic: 2793 Views
  • dgm
    Avatar
    Community Member
    1 Post

    Server Admin & CMS Admin Same address Link to this post

    I'm on a shared server and we log in to the server control panel via domain-name.com/admin
    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.

  • Boogiez
    Avatar
    Community Member
    17 Posts
  • dgm2
    Avatar
    Community Member
    4 Posts

    Re: Server Admin & CMS Admin Same address Link to this post

    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.

    <?php
    /**
    *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'
    ));

    ?>

  • Boogiez
    Avatar
    Community Member
    17 Posts

    Re: Server Admin & CMS Admin Same address Link to this post

    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.

  • dgm2
    Avatar
    Community Member
    4 Posts

    Re: Server Admin & CMS Admin Same address Link to this post

    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. ;)

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Server Admin & CMS Admin Same address Link to this post

    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.

  • dgm2
    Avatar
    Community Member
    4 Posts

    Re: Server Admin & CMS Admin Same address Link to this post

    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.

  • dgm2
    Avatar
    Community Member
    4 Posts

    Re: Server Admin & CMS Admin Same address Link to this post

    I just got an idea from looking at CMS Made Simple's install. They use http://domain-name.com/admin too. With them you can access by going to: http://domain-name.com/admin/login.php

    Can something like this be done with Silverstripe?

    Thanks

    2793 Views
Page: 1 2
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.