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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

Server Admin & CMS Admin Same address


Go to End


9 Posts   5439 Views

Avatar
dgm

Community Member, 1 Post

11 January 2009 at 12:58pm

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.

Avatar
Boogiez

Community Member, 17 Posts

11 January 2009 at 2:29pm

Avatar
dgm2

Community Member, 4 Posts

12 January 2009 at 5:15am

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

?>

Avatar
Boogiez

Community Member, 17 Posts

12 January 2009 at 7:30am

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.

Avatar
dgm2

Community Member, 4 Posts

12 January 2009 at 7:35am

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

Avatar
Hamish

Community Member, 712 Posts

12 January 2009 at 8:19am

Edited: 12/01/2009 8:20am

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.

Avatar
dgm2

Community Member, 4 Posts

12 January 2009 at 3:00pm

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.

Avatar
dgm2

Community Member, 4 Posts

13 January 2009 at 7:19am

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

Go to Top