diff --git a/public/.htaccess b/public/.htaccess index 26faccf..0b95597 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -11,6 +11,12 @@ RewriteRule ^ - [L] # URL propre pour les articles : /post/ RewriteRule ^post/([a-z0-9][a-z0-9-]*)/?$ /index.php?action=view&slug=$1 [L,QSA] +# Filtre par catégorie : /categorie/ +RewriteRule ^categorie/(.+?)/?$ /index.php?cat=$1 [L,QSA,NE] + +# Pagination par curseur : /cursor/ +RewriteRule ^cursor/([0-9a-f-]{36})/?$ /index.php?cursor=$1 [L,QSA] + # Édition / création RewriteRule ^edit/([0-9a-f-]{36})/?$ /index.php?action=edit&uuid=$1 [L,QSA] RewriteRule ^new/?$ /index.php?action=create [L,QSA] diff --git a/templates/layout.php b/templates/layout.php index 365b87f..5ca6ca5 100644 --- a/templates/layout.php +++ b/templates/layout.php @@ -76,7 +76,7 @@ $isPriv = in_array($catName, $_layoutPrivateCats, true); ?>