4622 Posts in 1398 Topics by 1393 members
| Go to End | Next > | |
| Author | Topic: | 2334 Views |
-
Server Admin & CMS Admin Same address

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.
-
Re: Server Admin & CMS Admin Same address

11 January 2009 at 2:29pm
Check this out: http://www.silverstripe.org/archive/show/7795
-
Re: Server Admin & CMS Admin Same address

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'
));?>
-
Re: Server Admin & CMS Admin Same address

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.
-
Re: Server Admin & CMS Admin Same address

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. ;)
-
Re: Server Admin & CMS Admin Same address

12 January 2009 at 8:19am Last edited: 12 January 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.
-
Re: Server Admin & CMS Admin Same address

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. -
Re: Server Admin & CMS Admin Same address

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
| 2334 Views | ||
| Go to Top | Next > |


