Better .htaccess upgrading instructions

This commit is contained in:
Ingo Schommer 2017-10-04 09:51:29 +01:00
parent 924e2a714f
commit 7d63acb221

View File

@ -84,6 +84,17 @@ to adjust the path to this file from `framework/main.php` to `vendor/silverstrip
If you are running Apache, adjust your `.htaccess` file. For other webservers,
please consult the [installation guides](getting_started/installation/).
For websites served by Apache, here's an adjusted `.htaccess` excerpt:
```diff
+RewriteCond %{REQUEST_URI} !^/vendor/silverstripe/framework/main\.php
RewriteRule ^vendor(/|$) - [F,L,NC]
# ...
-RewriteRule .* framework/main.php?url=%1 [QSA]
+RewriteRule .* vendor/silverstripe/framework/main.php?url=%1 [QSA]
```
#### Upgrade references to renamed and namespaced classes