mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Better .htaccess upgrading instructions
This commit is contained in:
parent
924e2a714f
commit
7d63acb221
@ -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,
|
If you are running Apache, adjust your `.htaccess` file. For other webservers,
|
||||||
please consult the [installation guides](getting_started/installation/).
|
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
|
#### Upgrade references to renamed and namespaced classes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user