Thanks so much!
That worked. I could provide the router rightaway in the gulp task:
const gulp = require('gulp'),
config = require('../config.js'),
php = require('gulp-connect-php')
gulp.task('php', function() {
if (config.settings.useCustomProxy) {
console.log('Using custom proxy server..')
return
}
console.log('Starting regular PHP server.')
php.server({
base: './',
port: config.devServer.phpServerPort,
router: 'kirbycore/router.php'
})
})
And good to know regarding the avatar root!
I started by transferring all the stuff from my old site.php and it probably slipped through.
Any idea why it’s still not working on the live server?