nginxRewrite everything to index.php
location / {
try_files $uri /index.php?$args;
}
ctrl + c
/index.php?$args all requests for missing files will be sent to index.php including arguments |
More of Nginx
- Using open_file_cache to optimize file access
- Using x-request-id header
- Reload configuration without connections dropping
- Redirect www to non-www
- How to redirect entire domain to another domain
- Using NJs example
- Using NJs example (JS code file)
- Using location with regex
- Access log in JSON format
- Using if condition
See more codes...