From 984ae870c32d8073e3b3bd416dd7f79c9dd98056 Mon Sep 17 00:00:00 2001 From: speedie Date: Sat, 10 Jun 2023 11:56:06 +0000 Subject: [PATCH] update some stuff --- .htaccess | 3 +++ index.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..f4ac509 --- /dev/null +++ b/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine On +RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.php($|\ |\?) +RewriteRule ^ /%1 [R=301,L] diff --git a/index.php b/index.php index b388284..730db36 100644 --- a/index.php +++ b/index.php @@ -23,7 +23,7 @@ $showFooter = true; // Display the "Powered by" footer $openIndex = $browseDirectories && true; // Open index files present in the current directory if $browseDirectories is enabled $browseDefault = null; // Start on a different "default" directory if $browseDirectories is enabled - $ignore = array("index.php", ".git"); // Names of files and folders to not list (case-sensitive) + $ignore = array("index.php", ".git", "ls.css", ".htaccess"); // Names of files and folders to not list (case-sensitive) // ============================= // =============================