I want to rewrite url in nginx, but the server Ubuntu has many sites.
Rewrite friendly url in php website.
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/
You can use rewrite rules from nginx possibilities. For example
Also, you can view rewrite-modules from https://www.nginx.com/blog/creating-nginx-rewrite-rules/