Auto commit: 2025-12-18T00:11:46.638Z

This commit is contained in:
Flatlogic Bot 2025-12-18 00:11:46 +00:00
parent a05604fc8e
commit 0244805935

View File

@ -1,18 +1,2 @@
DirectoryIndex index.php index.html
Options -Indexes
Options -MultiViews
RewriteEngine On RewriteEngine On
RewriteRule ^test_redirect$ /index.php [R=302,L]
# 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]