Now that the public directory is mandatory, we must make sure we're pulling in .htaccess whenever recipe-core is included as a dependency to ensure apache traffic flows through that folder.
Any project using composer create-project silverstripe/recipe-core will have .htaccess in the project root by default, but using any other recipe (e.g. composer create-project silverstripe/recipe-blog or some custom bespoke recipe), or when adding silverstripe/installer as a dependency in CI, it needs to be included by silverstripe/recipe-plugin.
Now that the public directory is mandatory, we must make sure we're pulling in
.htaccess
whenever recipe-core is included as a dependency to ensure apache traffic flows through that folder.Any project using
composer create-project silverstripe/recipe-core
will have.htaccess
in the project root by default, but using any other recipe (e.g.composer create-project silverstripe/recipe-blog
or some custom bespoke recipe), or when addingsilverstripe/installer
as a dependency in CI, it needs to be included bysilverstripe/recipe-plugin
.This is handled by https://github.com/silverstripe/recipe-core/pull/83, which makes the
.htaccess
file in this recipe redundant.Parent issue