Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Changing the /admin/ path

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1600 Views
  • LoZzA
    Avatar
    Community Member
    11 Posts

    Changing the /admin/ path Link to this post

    For my site, www.mysite.co.nz/admin is used to access my web hosting control panel, so I am unable to access the CMS admin page.

    How can I make www.mysite.co.nz/cmsadmin my access SilverStrip CMS admin page?

    I can get everything to work fine if I put the install files into www.mysite.co.nz/silverstripe and install from there, but I don't want people to have to type www.mysite.co.nz/silverstripe to get to the home page. If I DO install it like this, how can I make www.mysite.co.nz direct to the right place.

    Any help would be greatly appreciated!

    LoZzA

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Changing the /admin/ path Link to this post

    All the rules for /admin/ would be stored in the cms/_config.php file. You might just find it easier to find and replace over the whole project!

  • LoZzA
    Avatar
    Community Member
    11 Posts

    Re: Changing the /admin/ path Link to this post

    Thanks willr!

    In the end I installed SS in its own directory and used rewrite in .htaccess to redirect to the SS directory.

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Changing the /admin/ path Link to this post

    A note about this - hopefully this will change eventually - there is a patch for CMS Menu modifications that goes a small way to making this configurable. However, if you really need to change it, these are some of the steps you probably have to take (not tested!). A lot of it could be done with a global search and replace if you're careful.

    Modify the /admin/ path in the following locations:

    1. Link() functions in all LeftAndMain subclasses
    2. CMS _config.php file directives
    3. CMS Javascript behaviours

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