mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8008 from blueo/patch-1
Add .htaccess to base with public rewrite
This commit is contained in:
commit
73d31d4797
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user