Hi
I set up my Kirby website a few years ago. I am not very familiar with web development and used the starterkit. Below is the Composer file that is currently in use.
composer.json
{
"name": "getkirby/starterkit",
"description": "Kirby Starterkit",
"type": "project",
"keywords": ["kirby", "cms", "starterkit"],
"homepage": "https://getkirby.com",
"authors": [
{
"name": "Bastian Allgeier",
"email": "bastian@getkirby.com",
"homepage": "https://getkirby.com"
}
],
"support": {
"email": "support@getkirby.com",
"issues": "https://github.com/getkirby/starterkit/issues",
"forum": "https://forum.getkirby.com",
"source": "https://github.com/getkirby/starterkit"
},
"require": {
"php": ">=7.1.0",
"getkirby/cms": "^4.0",
"sylvainjule/bouncer": "^1.0"
},
"config": {
"optimize-autoloader": true,
"allow-plugins": {
"getkirby/composer-installer": true
}
}
}
Now I would like to migrate the website from Nginx to Apache. For this reason, I need a .htaccess
file in the webroot so that the URLs are resolved correctly and certain URLs (e.g. access to content
) are blocked. After running composer install
, however, no such .htaccess
file is created. For this reason I used the .htaccess
file (created manually) from getkirby/starterkit, everything works fine.
Now to my question: Is it correct that I have to create and maintain the .htaccess
file manually (Check after each update whether it is still up to date) or should it have been created by Composer?
The documentation says:
Make sure that the
.htaccess
file that ships with Kirby is present in your Kirby folder.
Best,
Markus