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.

Archive

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

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

Website transfer


Reply

8 Posts   1708 Views

Avatar
Bootje

26 November 2008 at 8:50am Community Member, 8 Posts

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

26 November 2008 at 9:19am Community Member, 787 Posts

- 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

27 November 2008 at 7:57am Community Member, 8 Posts

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

27 November 2008 at 11:58pm Community Member, 787 Posts

Are rewrites enabled on the webserver ?

Avatar
Blackdog

28 November 2008 at 12:26am Community Member, 156 Posts

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

28 November 2008 at 8:45am (Last edited: 28 November 2008 8:46am), Community Member, 8 Posts

Cache is cleared and rewritables is enabled.

Still page not found...

Avatar
simon_w

28 November 2008 at 9:05am Forum Moderator, 474 Posts

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

28 November 2008 at 9:20am Community Member, 8 Posts

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!