silverstripe / recipe-cms

Silverstripe recipe for fully featured page and asset content editing
BSD 3-Clause "New" or "Revised" License
20 stars 14 forks source link

MNT Remove unnecessary .htaccess file #65

Closed GuySartorelli closed 1 year ago

GuySartorelli commented 1 year ago

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.

This is handled by https://github.com/silverstripe/recipe-core/pull/83, which makes the .htaccess file in this recipe redundant.

Parent issue