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.

Migrating a Site to Silverstripe /

What you need to know when migrating your existing site to SilverStripe.

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

migration problem


Go to End


3 Posts   2568 Views

Avatar
animasola

Community Member, 121 Posts

18 May 2009 at 4:32am

I have a problem, I deployed Silverstripe locally so I can modify it easily. Now that I'm finished, I have to move it from local to live.

I uploaded all the files and exported the database and imported them onto the live account. I changed the config file for database name and user. Once I was finished, I checked the site but all I get is a HTTP 404 - File not found. Why is this?

here is some more detail regarding the matter:

Working experimental site exists at:

http://localhost.localdomain/stripe/
all the files are in a folder names stripe

I migrated it to:

http://lexlounge.inting.org/draft/

What else do I have edit other than the config file (since I changed the db name and user)?

Avatar
Howard

Community Member, 215 Posts

18 May 2009 at 4:24pm

You're almost there! You will have to change the .htaccess file which is located in the root directory of the installation - there will be a line that looks something like this:

RewriteBase /stripe

I'm not 100% but I think that has to be changed to:

RewriteBase /draft

or simply:

RewriteBase /

Avatar
PGiessler

Community Member, 47 Posts

25 May 2009 at 7:34pm

Yes, you are right. You have to change the RewriteBase in .htaccess. In that case: RewriteBase /draft.

Best regards,

Pascal