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.
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?
- 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 ?
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...
Are rewrites enabled on the webserver ?
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.
Cache is cleared and rewritables is enabled.
Still page not found...
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/)
It's working now.
The problem was that in htaccess was written:
and this is changed now in:
Thanks a lot!