I want to rewrite url in nginx, but the server Ubuntu has many sites.
Rewrite friendly url in php website.
P粉7680455222024-01-11 15:15:57
You can use rewrite rules from nginx possibilities. For example
server { listen 80; listen 443 ssl; server_name www.site1.com site1.com; location=/your-url { rewrite a.php= ^my-desires([0-9]+)$ break; } .... .... }
Also, you can view rewrite-modules from https://www.nginx.com/blog/creating-nginx-rewrite-rules/