Merge pull request #8008 from blueo/patch-1

Add .htaccess to base with public rewrite
This commit is contained in:
Damian Mooyman 2018-04-18 09:38:34 +12:00 committed by GitHub
commit 73d31d4797
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.