From d017568a77d677e449e66d689450532a760d6f11 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 13 Nov 2023 13:37:26 +0100 Subject: initial commit --- .htaccess | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .htaccess (limited to '.htaccess') diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..d025b2b --- /dev/null +++ b/.htaccess @@ -0,0 +1,9 @@ +RewriteEngine On +# Redirect /index.php to / (optional, but recommended I guess) +RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php +RewriteRule ^index.php/?(.*)$ $1 [R=301,L] + +# Run everything else but real files through index.php +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.*)$ index.php/$1?%{QUERY_STRING} [L] -- cgit v1.2.3