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
This commit is contained in:
Bernard Hamlin 2018-04-16 14:51:12 +12:00 committed by GitHub
parent 5a8c5601a9
commit 3d2a3198d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.