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.

Archive /

Our old forums are still available as a read-only archive.

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

Website transfer


Go to End


8 Posts   2499 Views

Avatar
Bootje

Community Member, 8 Posts

26 November 2008 at 8:50am

I want to transfer my website to another server.

With the information I have so far, it's enough to do this:

- Copy the files
- Export the mysql table
- Import this dump (and use the same names and acces user)

I've done this, but all I get is this: "The requested document was not found on this server. "

Can somebody help me?

Avatar
Fuzz10

Community Member, 791 Posts

26 November 2008 at 9:19am

- You also need to check the _config.php vars in the project directory.
- Silverstripe needs a specific .htaccess , did you copy that one as well ?

Avatar
Bootje

Community Member, 8 Posts

27 November 2008 at 7:57am

I've copied all the files and the config files are correct.
Also the config file in mysite is correct, but I still don't see the website...

Avatar
Fuzz10

Community Member, 791 Posts

27 November 2008 at 11:58pm

Are rewrites enabled on the webserver ?

Avatar
Blackdog

Community Member, 156 Posts

28 November 2008 at 12:26am

make sure you clear your silverstripe-cache folder.

I have seen this cause a problem in some transfers.

do a db/build?flush=1 and see what happens. If you have moved your db succesfully it shouldn't try to rebuild all your custom pagetypes.

Avatar
Bootje

Community Member, 8 Posts

28 November 2008 at 8:45am

Edited: 28/11/2008 8:46am

Cache is cleared and rewritables is enabled.

Still page not found...

Avatar
(deleted)

Community Member, 473 Posts

28 November 2008 at 9:05am

This is most likely because of a RewriteBase problem. Edit the .htaccess file and update the RewriteBase (it should be relative to the server root. Say your URL is http://your-site/silverstripe/, then the RewriteBase should be /silverstripe/)

Avatar
Bootje

Community Member, 8 Posts

28 November 2008 at 9:20am

Yes!

It's working now.

The problem was that in htaccess was written:

RewriteBase /folder

and this is changed now in:

RewriteBase /

Thanks a lot!