From 298db8edfc4ad2168696c01fc1c8e855627c5a8f Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Fri, 17 Mar 2023 12:15:16 +0000 Subject: [PATCH] fix(shortener): php7 compat and fix sample nginx configuration --- shortener/README.md | 6 +----- shortener/index.php | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/shortener/README.md b/shortener/README.md index 155d5f2..dcd0469 100644 --- a/shortener/README.md +++ b/shortener/README.md @@ -14,11 +14,7 @@ server { } location / { - try_files @ashdotley; - } - - location @ashdotley { - rewrite ^/(.*) /index.php?id=$1&$args last; + rewrite ^/(.*) /index.php?l=$1&$args; } location ~ ^/index.php$ { diff --git a/shortener/index.php b/shortener/index.php index 415fa57..be7cca2 100644 --- a/shortener/index.php +++ b/shortener/index.php @@ -1,7 +1,7 @@