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