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) // ============================= // =============================