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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

CMS access change URL


Reply

7 Posts   1010 Views

Avatar
nat.pike

19 May 2011 at 2:15pm Community Member, 19 Posts

Hi there,

I have a problem - I have uploaded a SilverStripe website to my clients hosting at FreeParking.co.nz.

The problem is when you go to access the CMS with www.website.com/admin it redirects to the admin panel for FreeParking.

Can I change the settings so the CMS can be accessed by www.website.com/admin/login.php? or something else?

Thanks for your help.

Natalie

Avatar
swaiba

19 May 2011 at 9:40pm Forum Moderator, 1796 Posts

Has this on an old webhost, I simply asked them to change their "admin" to allow me to use it

Avatar
nat.pike

20 May 2011 at 12:47pm Community Member, 19 Posts

Hi, thanks for your comments - I tried that but the said that when the Server is rebooted it will automatically revert back.

Avatar
swaiba

20 May 2011 at 4:03pm Forum Moderator, 1796 Posts

oh, then I'd find another host...

Avatar
nat.pike

20 May 2011 at 4:20pm Community Member, 19 Posts

Unfortunately that is not an option - it's my clients hosting and they've paid for hosting for the next couple of years.

Avatar
Devlin

20 May 2011 at 8:36pm Community Member, 215 Posts

You can access the CMS via www.website.com/index.php/admin too.

Avatar
swaiba

20 May 2011 at 8:44pm (Last edited: 20 May 2011 8:45pm), Forum Moderator, 1796 Posts

Oh, well... in that case...

I'd say - how often do you reset the server? If it's like my servers months go by - so just request the host to remove the rule afterwards each time...

If you want to change the code start by searching for "admin", 'admin' and admin (i.e. with different types of quotes and then without qoutes) within the cms. So start by changing...

e.g.
cms\code\LeftAndMain.php

   static $url_base = "admin";

but really this is an AWFUL idea as more than likely something will go wrong and it'll make upgrading (for security and stuff) very annoying - also modules are going to expect "admin" too, so change them... best of luck...

(oh just seen a rather simpler solution! ha!)