From 0244805935b7be185b3135b7e2cda607d190c1f6 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 18 Dec 2025 00:11:46 +0000 Subject: [PATCH] Auto commit: 2025-12-18T00:11:46.638Z --- .htaccess | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.htaccess b/.htaccess index e2bbc23..1283c6e 100644 --- a/.htaccess +++ b/.htaccess @@ -1,18 +1,2 @@ -DirectoryIndex index.php index.html -Options -Indexes -Options -MultiViews - RewriteEngine On - -# 0) Serve existing files/directories as-is -RewriteCond %{REQUEST_FILENAME} -f [OR] -RewriteCond %{REQUEST_FILENAME} -d -RewriteRule ^ - [L] - -# 1) Internal map: /page or /page/ -> /page.php (if such PHP file exists) -RewriteCond %{REQUEST_FILENAME}.php -f -RewriteRule ^(.+?)/?$ $1.php [L] - -# 2) Optional: strip trailing slash for non-directories (keeps .php links working) -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.+)/$ $1 [R=301,L] +RewriteRule ^test_redirect$ /index.php [R=302,L] \ No newline at end of file