From 2f79e5ca9a3e7d2e59fc720a6693a1189a8cbea2 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 8 Jul 2021 23:58:13 -0400 Subject: [PATCH] fixes --- .../journal.libraryofcode.org.conf | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Nginx/Server Blocks/journal.libraryofcode.org.conf b/Nginx/Server Blocks/journal.libraryofcode.org.conf index 4036a3c..2c741a6 100644 --- a/Nginx/Server Blocks/journal.libraryofcode.org.conf +++ b/Nginx/Server Blocks/journal.libraryofcode.org.conf @@ -15,30 +15,10 @@ server { index index.html index.htm index.php; charset utf-8; - - # Remove index.php$ - if ($request_uri ~* "^(.*/)index\.php$") { - return 301 $1; - } - + location / { try_files $uri $uri/ /index.php?$query_string; - - # Remove from everywhere index.php - if ($request_uri ~* "^(.*/)index\.php(/?)(.*)") { - return 301 $1$3; - } } - # Remove trailing slash. - if (!-d $request_filename) { - rewrite ^/(.+)/$ /$1 permanent; - } - - # Clean Double Slashes - if ($request_uri ~* "\/\/") { - rewrite ^/(.*) /$1 permanent; - } - error_page 404 /index.php;