How to move Kirby to a new host?

Hmm well, some pages are working and some are not. It seems the more subdirectories we go into the more broken it gets. For example, it should look and work like this
www.fivepointscolumbia.comrestaurants
but it instead looks like this
66.201.69.45/~fivepointscolumb/restaurants
and if you click on any of the tags at the top then it gets completely back to broken.

I’d point a subdomain to the subfolder, then you shouldn’t run into those issues, but still fix those links using the helpers. Image links seem to be affected as well.

Those assets should not be all over the place but only in headers or footers, so should be too difficult to replace those? As I said, use the helpers.

Ok going to go read the info on the helpers. I was told this was a standard kirby v2 install with no modifications or customization but I have no way of verifying that.

So if I am reading this correctly.

This code in the header.php file

would become this

<?= css(array(
  'css/app.css?v='.$cssVersion,
  'bower_components/fancybox/source/jquery.fancybox.css',
  'js/lity-2.2.2/dist/lity.min.css',
  'js/slick/slick.css',
  'js/slick/slick-theme.css'
)) ?>

That about right?

That depends on the folder structure, you have to pass the full path from the project root, if those files are in the assets folder, then you have to start at assets/

Ok I swapped it out and the new code in the header.php is now

<?= css(array( 'http://66.201.69.45/~fivepointscolumb/css/app.css?v='.$cssVersion, 'http://66.201.69.45/~fivepointscolumb/bower_components/fancybox/source/jquery.fancybox.css', 'http://66.201.69.45/~fivepointscolumb/js/lity-2.2.2/dist/lity.min.css', 'http://66.201.69.45/~fivepointscolumb/js/slick/slick.css', 'http://66.201.69.45/~fivepointscolumb/js/slick/slick-theme.css' )) ?> <?= js(array( 'http://66.201.69.45/~fivepointscolumb/bower_components/jquery/dist/jquery.min.js', 'http://66.201.69.45/~fivepointscolumb/bower_components/modernizr/modernizr.js', 'http://66.201.69.45/~fivepointscolumb/assets/js/lity-2.2.2/dist/lity.min.js' )) ?>

This seems to be working. Now I am trying to login to the panel so I can edit some of the content that has links in it I need to fix but the panel page looks weird. Do I need to change this someplace else?

66.201.69.45/~fivepointscolumb/panel/login

The asset links are wrong, there is a slash missing between the panelassets part of the URL, should be panel/assets/... But I don’t really know why this is happening.

That makes two of us :frowning: I’d be happy to give you FTP access so you could take a look if you want to shoot me an email. Might save us both time :slight_smile:

Sounds like a plan :slightly_smiling_face: You can send me the details via PM or mail to sonja@getkirby.com.

Sent via email.