feat: smart 404 redirige vers article le plus proche via moteur de recherche

This commit is contained in:
Cedric Abonnel
2026-05-12 22:47:37 +02:00
parent f273c3fa6a
commit 7de1cbaed8
2 changed files with 56 additions and 1 deletions
+3
View File
@@ -59,3 +59,6 @@ RewriteRule ^sitemap\.xml$ /sitemap.php [L]
# Ajoute .php si le fichier correspondant existe
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}.php -f
RewriteRule ^(.+?)/?$ /$1.php [L,QSA]
# 404 intelligent : redirige vers l'article le plus proche
ErrorDocument 404 /index.php?action=not_found