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.

Installing SilverStripe /

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

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

Setting the base tag

Go to End

2 Posts   1286 Views


Community Member, 24 Posts

25 September 2013 at 10:15pm

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



Community Member, 24 Posts

26 September 2013 at 2:07am

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

Knew it would be there somewhere :)