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 x-frame-options header
- Using try_files
- Using NJs example (JS code file)
- Install NJS (Nginx Javascript) module in Ubuntu 22.04
- Using x-request-id header
- Using Python app with Nginx
- How to remove specific header
- Using location with regex
- Using if else condition
- Using NJs example
See more codes...