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