From 8d0953b5978320da442ccdc1c55dd58407443bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Assun=C3=A7=C3=A3o?= Date: Mon, 4 May 2026 23:59:37 +0000 Subject: [PATCH] Adicionar .htaccess --- .htaccess | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..75f8982 --- /dev/null +++ b/.htaccess @@ -0,0 +1,9 @@ +RewriteEngine On + +# Impede que acessem pastas confidenciais (opcional, dependendo da estrutura) +RewriteRule ^(src|config|vendor)/ - [F,L] + +# Se o arquivo ou diretório não existir fisicamente, manda para o index.php +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ index.php [QSA,L] \ No newline at end of file