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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Change Url/ baseurl


Go to End


5 Posts   5367 Views

Avatar
nicanor

Community Member, 15 Posts

4 August 2011 at 9:43pm

I moved the installation from development server to an other server. I can't find an entry in DB or in a file where the domain name is stored. i want to change the url so baseurl is changed.

i read here some articles but seems no real solution?!

Avatar
martimiz

Forum Moderator, 1391 Posts

4 August 2011 at 10:05pm

In SilverStripe you don't normally have to do anything like that. The only data you need to update is your database configuration in _config.php...

So if it's not working, it might be something else?

Avatar
nicanor

Community Member, 15 Posts

4 August 2011 at 11:12pm

I don't. i made a new install on the new server and copied the content by hand. i tried to copy it a second time, but no changes. Baseurl is the url of the old server, css files etc. came form old server and server error.

Avatar
martimiz

Forum Moderator, 1391 Posts

5 August 2011 at 3:28am

OK... In that case - did you copy the contents of silverstripe-cache as well? It might still have the old domainname cached...

Try /dev/build/?flush=1 to rebuild the cache...

Avatar
nicanor

Community Member, 15 Posts

8 August 2011 at 9:45pm

Thanks a lot. This solved my problem. I cleared the cache with /dev/build/?flush=1 before i copied the site. The problem is when you don't clear the cache before copy the page. The old domain which resists in cache won't let you login to admin and won't let you delete the cache.