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, biapar, Willr, Ingo, swaiba, simon_w

Setting the base tag


Reply


2 Posts   607 Views

Avatar
codemonkey88

Community Member, 17 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

Thanks

Avatar
codemonkey88

Community Member, 17 Posts

26 September 2013 at 2:07am

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

Knew it would be there somewhere :)