Update README.md
This commit is contained in:
parent
fc2754adaf
commit
baa9d854fb
28
README.md
28
README.md
@ -36,36 +36,8 @@ require '/change_this/Route.php'
|
||||
|
||||
See `example.php`
|
||||
|
||||
## Access directly
|
||||
|
||||
The simplest way to access your routes. Put your file in the folder you like and it will automatically account for it.
|
||||
|
||||
Examples
|
||||
|
||||
```
|
||||
ENTRYPOINT = /index.php
|
||||
/index.php -> /
|
||||
/index.php/ -> /
|
||||
/ -> /
|
||||
/index.php/somepath -> /somepath
|
||||
|
||||
ENTRYPOINT = /your_root/index.php
|
||||
/your_root/index.php -> /
|
||||
/your_root/index.php/ -> /
|
||||
/your_root/ -> /
|
||||
/your_root/index.php/somepath -> /somepath
|
||||
```
|
||||
|
||||
## Rewrite requests
|
||||
|
||||
The more sexy way of doing it. Suitable for production.
|
||||
|
||||
```
|
||||
ENTRYPOINT = /index.php
|
||||
/ -> /
|
||||
/somepath -> /somepath
|
||||
```
|
||||
|
||||
### NGINX
|
||||
|
||||
With PHP already configured, add this to the server block of your configuration to make requests that don't match a file on your server to be sent to your front controller and begin routing.
|
||||
|
Reference in New Issue
Block a user