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 try_files
- Using if condition
- Log requests (post and get)
- Proxying websocket server with Nginx
- Set access-control-allow-origin header
- Proxy gRPC traffic with Nginx
- Install NJS (Nginx Javascript) module in Ubuntu 22.04
- Redirect www to non-www
- Using x-frame-options header
- Using x-request-id header
See more codes...