From e8395a8b9e85d6c60dcb2e123063ae4ef575fde2 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 1 Jul 2024 23:56:33 +0200 Subject: [PATCH] more robust rewrite conditions for feedback form --- web/.htaccess | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/.htaccess b/web/.htaccess index 5958553..6ab9b86 100644 --- a/web/.htaccess +++ b/web/.htaccess @@ -26,8 +26,8 @@ RewriteRule ^devlogs/?$ "#devlogs" [R=301,L,NE] RewriteRule ^roadmap/?$ "#roadmap" [R=301,L,NE] RewriteRule ^community/?$ "#community-showcase" [R=301,L,NE] -# permanent redirects -RewriteCond %{QUERY_STRING} "(?=.*ver=([^&]*))?(?=.*log=([^&]*))?" +# bugreport and feedback form replacements +RewriteCond %{QUERY_STRING} "^(?=.*[?&]ver=([^?&]*))?(?=.*[?&]log=([^?&]*))?" RewriteRule ^feedback "https://link.tinylifegame.com/form?usp=pp_url&entry.769753510=%1&entry.1339288296=Give+feedback+(Suggestions,+complaints+etc.)&entry.476139991=%2" [NE,R=301,L] -RewriteCond %{QUERY_STRING} "(?=.*ver=([^&]*))?(?=.*log=([^&]*))?" +RewriteCond %{QUERY_STRING} "^(?=.*[?&]ver=([^?&]*))?(?=.*[?&]log=([^?&]*))?" RewriteRule ^bugreport "https://link.tinylifegame.com/form?usp=pp_url&entry.769753510=%1&entry.1339288296=Report+a+bug+(Crash,+error+notification+in-game+etc.)&entry.476139991=%2" [NE,R=301,L]