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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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 / site url


Go to End


2 Posts   1673 Views

Avatar
vanguard

Community Member, 1 Post

21 October 2014 at 10:29pm

Wondering what the process is to change the base url ? currently all the links on my site have changed to https:// and wondering what the process would be to change them back is this determined by the server config or locally ?

have tried adding Directory::forceWWW() to _config.php but no success, any suggestions would be terrific

Avatar
camfindlay

Forum Moderator, 267 Posts

12 November 2014 at 8:00am

You might want to check to see if the Director::forceSSL has been set in the _config.php (I also note your Directory::forceWWW() is spelt incorrect if this is how you have it in the code it won't be working, should be Director::forceWWW).

Other possible issues could be in the htaccess for someone may have set requests to go via SSL (though this is custom work and if it's your project and you know you haven't done this then it won't be that).

There is nowhere you specifically set the site URL in SilverStripe, it's taken based off the domain you have it installed under.