From ef21c4b33d5cff0177458c4545cb47124407fe32 Mon Sep 17 00:00:00 2001 From: Yass <102179445+Yasder5@users.noreply.github.com> Date: Tue, 3 Mar 2026 23:01:23 +0100 Subject: [PATCH] Delete .htaccess --- .htaccess | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .htaccess diff --git a/.htaccess b/.htaccess deleted file mode 100644 index ac4b1ee..0000000 --- a/.htaccess +++ /dev/null @@ -1,31 +0,0 @@ -Options -Indexes - - - Require all denied - - -# Gestion des erreurs -ErrorDocument 404 /error/error_404 -ErrorDocument 403 /error/error_403 - -RewriteEngine On -RewriteBase / - -# Bloquer l'accès direct au dossier vendor -RewriteRule ^vendor/ - [F,L] - -# Autoriser l'accès aux fichiers/dossiers physiques (images, css, js) -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d - -# RACINE : accueil par défaut -RewriteRule ^$ index.php?ctrl=project&action=home [QSA,L] - -# ID NUMÉRIQUE : /ctrl/action/42 -RewriteRule ^([a-zA-Z]+)/([a-zA-Z_]+)/([0-9]+)/?$ index.php?ctrl=$1&action=$2&id=$3 [QSA,L] - -# PSEUDO : /user/profile/johndoe -RewriteRule ^([a-zA-Z]+)/([a-zA-Z_]+)/([a-zA-Z0-9_-]+)/?$ index.php?ctrl=$1&action=$2&pseudo=$3 [QSA,L] - -# RÉÉCRITURE GÉNÉRALE : /ctrl/action -RewriteRule ^([a-zA-Z]+)/([a-zA-Z_]+)/?$ index.php?ctrl=$1&action=$2 [QSA,L] \ No newline at end of file