From dcf77697dc3a175649ffcd4f4382a6b1a656e407 Mon Sep 17 00:00:00 2001 From: Thorsten Rinne Date: Fri, 9 Feb 2024 18:09:14 +0100 Subject: [PATCH] fix: corrected rewrite routes --- nginx.conf | 4 +++- phpmyfaq/.htaccess | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index edd48cf56f..8b23dc89c4 100644 --- a/nginx.conf +++ b/nginx.conf @@ -36,7 +36,9 @@ server { if (!-f $request_filename) { # General pages - rewrite ^/(showcat|search|addcontent|ask|open-questions|help|contact|glossary|overview|login|privacy|index).html$ /index.php?action=$1 last; + rewrite ^/addcontent.html$ /index.php?action=add last; + rewrite ^/show-categories.html$ /index.php?action=show last; + rewrite ^/(search|ask|open-questions|help|contact|glossary|overview|login|privacy|index).html$ /index.php?action=$1 last; # a solution id page rewrite ^/solution_id_([0-9]+).html$ /index.php?solution_id=$1 last; diff --git a/phpmyfaq/.htaccess b/phpmyfaq/.htaccess index c0f25a4900..4cb2532712 100644 --- a/phpmyfaq/.htaccess +++ b/phpmyfaq/.htaccess @@ -41,7 +41,9 @@ RewriteBase / ErrorDocument 404 /index.php?action=404 # General pages -RewriteRule ^(show-categories|search|addcontent|ask|open-questions|contact|glossary|overview|login|privacy)\.html$ index.php?action=$1 [L,QSA] +RewriteRule addcontent.html$ index.php?action=add [L,QSA] +RewriteRule show-categories.html$ index.php?action=show [L,QSA] +RewriteRule ^(search|ask|open-questions|contact|glossary|overview|login|privacy)\.html$ index.php?action=$1 [L,QSA] # start page RewriteRule ^index.html$ index.php [PT]