Update README.md
This commit is contained in:
parent
0019795655
commit
1daa73b9a0
14
README.md
14
README.md
@ -36,8 +36,22 @@ require '/change_this/Route.php'
|
||||
|
||||
See `example.php`
|
||||
|
||||
## Access directly
|
||||
|
||||
The simplest way to access your routes. Just put the file in your favorite folder and run it!
|
||||
|
||||
For example
|
||||
|
||||
`http://your.site/folder/index.php/route`
|
||||
|
||||
## Rewrite requests
|
||||
|
||||
The more sexy way of doing it.
|
||||
|
||||
For example
|
||||
|
||||
`http://your.site/route`
|
||||
|
||||
### 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