-
☆ A M B ☆
- 24,524 Posts
For transferring new, relatively small sites, it's hard to beat Vapor.
Install Vapor from the package manager, then run the vapor/vapor.php script directly from your browser address bar. This will produce a package.zip file in your core/packages/ directory.
Upload this to the core/packages/ directory of the new installation on the hosting, and install it from the package manager like any other add-on package.
If you have access to the command line on both servers, you can also use Teleport to extract, then inject a full snapshot.
https://github.com/modxcms/teleport/blob/master/README.md
Vapor is a great tool indeed.
A MODx Fanatic
trelgh, sottwell
Thanks for the help. I went with trelgh's quick steps in the end as Vapor was not working for me for some reason.
All seems to have gone well but the sytlesheet and images are not loading. I intially thought it might be an issue to do with file permissions but I tried changing this for the ccs stylesheet from 0644 to 0755 but still did not resolve the problem. Have you guys come across a similar problem after migrating a site?
Will get it touch with the host's support to see if they can help.
Thanks again,
Scip
I don't think the host will help. Most likely, it's a path problem in your code, since the rest of the site and the manager is working.
Maybe you hard-coded the path to the CSS files in the Templates?
Look at the source of the page in your Browser (Ctrl-u) to see where it's looking for the CSS files, then check your Templates and Chunks for those paths.
I suspect a missing <base> tag in your templates and a missing .htaccess file in the web root.
Try adding <base href="[[++site_url]]"> in the head of your template, before the stylesheet and other assets.
Then rename the ht.access file to .htaccess.
I'm assuming of course that you haven't tried these steps yet.
A MODx Fanatic