From 3655307c21a2d4209226943cf4715eb671fdf0df Mon Sep 17 00:00:00 2001
From: Lukas Novy <github-lnovy@krtek.net>
Date: Wed, 20 Dec 2023 10:07:01 +0100
Subject: [PATCH] Podpora pro chybejici strankovani v SEO odkazech

---
 phpbb-htaccess.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/phpbb-htaccess.conf b/phpbb-htaccess.conf
index 0396218..f283207 100644
--- a/phpbb-htaccess.conf
+++ b/phpbb-htaccess.conf
@@ -82,9 +82,9 @@
   # FORUM ALL MODES
   RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$2&start=$4 [QSA,L,NC,R=302]
   # TOPIC WITH VIRTUAL FOLDER ALL MODES
-  RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC,R=302]
+  RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-s?([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC,R=302]
   # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
-  RewriteRule ^announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$2&start=$4 [QSA,L,NC,R=302]
+  RewriteRule ^announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-s?([0-9]+))?\.html$ /viewtopic.php?t=$2&start=$4 [QSA,L,NC,R=302]
   # PHPBB FILES ALL MODES
   RewriteRule ^resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /download/file.php?id=$2&t=$1 [QSA,L,NC,R=302]
   # POST
-- 
GitLab