Jump to:

4952 Posts in 14256 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Setting the base tag

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

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

Page: 1
Go to End
Author Topic: 424 Views
  • codemonkey88
    Avatar
    Community Member
    13 Posts

    Setting the base tag Link to this post

    I suspect this may be a simple define somewhere, but I have searched the documentation and forums and can't seem to find what I'm after.

    I have just installed silverstripe and noticed I was unable to login, I was stuck in some sort of loop. When I looked at the address bar, I noticed the uri was /websites/123reg/LinuxPackage25/ex/pe/rt/public_html/Security/login?BackURL=%2Fadmin So I checked the source code, and the base href has a similar string. So basically, I want to overide the base href somewhere. Can it be done in _config or is it more complex than that?

    I'm on 2.4

    Thanks

  • codemonkey88
    Avatar
    Community Member
    13 Posts

    Re: Setting the base tag Link to this post

    Found it - Director::setBaseURL("/");

    Knew it would be there somewhere

    424 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.