diff --git a/conf/nginx.conf b/conf/nginx.conf index cbb1f01..ce639c5 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -27,8 +27,8 @@ location __PATH__/ { # Default indexes and catch-all rewrite ^/(connexion|compte)$ /$1.php; - rewrite ^/api/version$ /api/version.json last; - rewrite ^/api/([a-zA-Z0-9_]+)(\?.*)?$ /api/$1.php$2; + rewrite ^/api/version$ /api/version.json; + rewrite ^/api/([a-zA-Z0-9_^\.]+)(\?.*)?$ /api/$1.php$2; index index.php index.html; try_files $uri $uri/ $uri.php?$args;