From a88fa129a8a7c2ff368d32c49b483488167065ac Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 28 Feb 2025 22:55:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Add=20.htaccess=20for=20routing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .htaccess | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..d21c762 --- /dev/null +++ b/.htaccess @@ -0,0 +1,19 @@ +AddDefaultCharset UTF-8 + + + +# Enable rewrite rules +RewriteEngine on + +# Base directory +RewriteBase / + +# Deny direct access to the next directories +RewriteRule ^bl-content/(databases|workspaces|pages|tmp)/.*$ - [R=404,L] + +# All URL process by index.php +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*) index.php [PT,L] + + \ No newline at end of file