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;