From 7d7629488a413201c942cb62d1ddc5c0963f7619 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 29 Sep 2023 20:02:56 +0300 Subject: [PATCH] add sef configuration example --- example/environment/nginx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example/environment/nginx b/example/environment/nginx index 4bfd1c5..c5a243f 100644 --- a/example/environment/nginx +++ b/example/environment/nginx @@ -11,7 +11,7 @@ server { server_name _; location / { - try_files $uri $uri/ =404; + try_files $uri $uri/ =404 @yggtracker; } location ~ \.php$ { @@ -22,4 +22,8 @@ server { location ~ /\. { deny all; } + + location @yggtracker { + rewrite ^/(.*)$ /index.php?$1 last; + } } \ No newline at end of file