From 3d2a3198d7051a26fb9961c69ad9f20a17bfe3c8 Mon Sep 17 00:00:00 2001 From: Bernard Hamlin <948122+blueo@users.noreply.github.com> Date: Mon, 16 Apr 2018 14:51:12 +1200 Subject: [PATCH] Add .htaccess to base with public rewrite Upgrading from 4.0 to 4.1 we needed this extra file. It is created by default with the cms recipe eg: https://raw.githubusercontent.com/silverstripe/recipe-cms/1/.htaccess --- docs/en/04_Changelogs/4.1.0.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/en/04_Changelogs/4.1.0.md b/docs/en/04_Changelogs/4.1.0.md index 567d32b39..a77b6b284 100644 --- a/docs/en/04_Changelogs/4.1.0.md +++ b/docs/en/04_Changelogs/4.1.0.md @@ -27,6 +27,11 @@ this folder doesn't exist. When separating the public webroot from the BASE_PATH it is necessary to move a few files during migration: - Move `.htaccess` from base to `public/` + - Create a new `.htaccess` in base that contains: + ``` + RewriteEngine On + RewriteRule ^(.*)$ public/$1 + ``` - Move `index.php` from base to `public/` - Move `assets` folder (including the nested `assets/.protected` folder) into `public/`. This is the only folder which needs write permissions.